aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-07 16:45:42 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-07 16:45:42 +0100
commit70f69ecc5f80f060d1780110ed9792f9e19d2507 (patch)
tree36ad1e6c7e802096bc0a8156a15e39fe99abdeeb /irc.c
parentc5aefa4463135b3f8720785804fe183817829b00 (diff)
Restoring auto-identification using server password.
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/irc.c b/irc.c
index b6a10fe0..281b1fd5 100644
--- a/irc.c
+++ b/irc.c
@@ -643,16 +643,6 @@ int irc_check_login( irc_t *irc )
irc->status |= USTATUS_LOGGED_IN;
- /* This is for bug #209 (use PASS to identify to NickServ). */
- if( irc->password != NULL )
- {
- char *send_cmd[] = { "identify", g_strdup( irc->password ), NULL };
-
- /*irc_setpass( irc, NULL );*/
- /*root_command( irc, send_cmd );*/
- g_free( send_cmd[1] );
- }
-
irc_send_login( irc );
irc->umode[0] = '\0';
@@ -672,6 +662,16 @@ int irc_check_login( irc_t *irc )
"If you already have an account on this server, just use the "
"\x02identify\x02 command to identify yourself.", NULL );
+ /* This is for bug #209 (use PASS to identify to NickServ). */
+ if( irc->password != NULL )
+ {
+ char *send_cmd[] = { "identify", g_strdup( irc->password ), NULL };
+
+ irc_setpass( irc, NULL );
+ root_command( irc, send_cmd );
+ g_free( send_cmd[1] );
+ }
+
return 1;
}
}