aboutsummaryrefslogtreecommitdiffstats
path: root/chat.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-09-28 12:18:19 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-09-28 12:18:19 +0100
commit94acdd0d7beaa659a5f6b26673c5dea5dbcc4496 (patch)
treec3b60c834729b4b52d9bc0230dbc7f89a2acb03a /chat.c
parente180c59a7796bb651b96ffaa5757e4688f1d3cc6 (diff)
Restored support for password-protected chatrooms (for now only by accepting
a password in the IRC JOIN command).
Diffstat (limited to 'chat.c')
-rw-r--r--chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chat.c b/chat.c
index d60655de..f7edf2e6 100644
--- a/chat.c
+++ b/chat.c
@@ -169,7 +169,7 @@ int chat_chanok( char *a )
return 0;
}
-int chat_join( irc_t *irc, struct chat *c )
+int chat_join( irc_t *irc, struct chat *c, const char *password )
{
struct groupchat *gc;
char *nick = set_getstr( &c->set, "nick" );
@@ -177,7 +177,7 @@ int chat_join( irc_t *irc, struct chat *c )
if( nick == NULL )
nick = irc->nick;
- if( ( gc = c->acc->prpl->chat_join( c->acc->ic, c->handle, nick, NULL ) ) )
+ if( ( gc = c->acc->prpl->chat_join( c->acc->ic, c->handle, nick, password ) ) )
{
g_free( gc->channel );
gc->channel = g_strdup( c->channel );