aboutsummaryrefslogtreecommitdiffstats
path: root/chat.c
diff options
context:
space:
mode:
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 );