diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-07-02 23:12:03 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-07-02 23:12:03 +0100 |
commit | 9da0bbfd42609f0f3864b5a16a3c1c378b7217c9 (patch) | |
tree | 080ab25a0fd949429c33ba125b9df189807d0d3c /root_commands.c | |
parent | 5d7dc007a418be0c897000e888e747047729c756 (diff) |
Added (and using) jabber_chat_free() for better memory management, fixed
channel name generation code in root_commands.c and fixed one memory leak
in jabber_buddy_remove_bare().
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/root_commands.c b/root_commands.c index 8ffebd8e..0f9f776c 100644 --- a/root_commands.c +++ b/root_commands.c @@ -911,7 +911,7 @@ static void cmd_join_chat( irc_t *irc, char **cmd ) chat = cmd[2]; if( cmd[3] ) { - if( channel[0] != '#' && channel[0] != '&' ) + if( cmd[3][0] != '#' && cmd[3][0] != '&' ) channel = g_strdup_printf( "&%s", cmd[3] ); else channel = g_strdup( cmd[3] ); |