aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-06-25 19:23:27 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-06-25 19:23:27 +0200
commit88086dbd9002123be39d00c53460f1ec9f2b719a (patch)
tree2370e9c8b59040b16217e120f203d24ff34f9270 /irc.c
parent6e1fed7057ee26f21b0e59a5aeb292d4f3f0e8ae (diff)
Added versioning information to the XML-file (convenient for later format
changes), got rid of confusing "Password successfully changed" message when the user uses the identify-command and protected rc4_decode() against short inputs.
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/irc.c b/irc.c
index b5751859..c07a3ea3 100644
--- a/irc.c
+++ b/irc.c
@@ -32,10 +32,11 @@ static gboolean irc_userping( gpointer _irc, int fd, b_input_condition cond );
GSList *irc_connection_list = NULL;
-static char *passchange (irc_t *irc, void *set, char *value)
+static char *passchange( irc_t *irc, void *set, char *value )
{
- irc_setpass (irc, value);
- return (NULL);
+ irc_setpass( irc, value );
+ irc_usermsg( irc, "Password successfully changed" );
+ return NULL;
}
irc_t *irc_new( int fd )