Changeset 94acdd0 for irc_commands.c


Ignore:
Timestamp:
2008-09-28T11:18:19Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b2c062d
Parents:
e180c59
Message:

Restored support for password-protected chatrooms (for now only by accepting
a password in the IRC JOIN command).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    re180c59 r94acdd0  
    194194        {
    195195                struct chat *c;
    196                 user_t *u;
    197196               
    198197                if( strchr( CTYPES, cmd[1][0] ) == NULL || cmd[1][1] == 0 )
    199198                        irc_reply( irc, 479, "%s :Invalid channel name", cmd[1] );
    200199                else if( ( c = chat_bychannel( irc, cmd[1] ) ) && c->acc && c->acc->ic )
    201                         chat_join( irc, c );
     200                        chat_join( irc, c, cmd[2] );
    202201                else
    203202                        irc_reply( irc, 403, "%s :No such channel", cmd[1] );
Note: See TracChangeset for help on using the changeset viewer.