diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-03-31 23:09:36 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-03-31 23:09:36 +0200 |
commit | 7d31002c391868a24693eadaf1c9c6024e1a30cb (patch) | |
tree | 48402adc61e0987e1681636a0feedf04f25cd688 /root_commands.c | |
parent | e27661d09e8c3fc85c979d4769ba20d1d3c289e2 (diff) |
Tested and fixed one issue, and got rid of one more superfluous iconv call.
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/root_commands.c b/root_commands.c index 36eec8c3..56260d26 100644 --- a/root_commands.c +++ b/root_commands.c @@ -752,15 +752,9 @@ static void cmd_nick( irc_t *irc, char **cmd ) } else { - char utf8[1024]; - irc_usermsg( irc, "Setting your name to `%s'", cmd[2] ); - if( g_strncasecmp( set_getstr( irc, "charset" ), "none", 4 ) != 0 && - do_iconv( set_getstr( irc, "charset" ), "UTF-8", cmd[2], utf8, 0, 1024 ) != -1 ) - a->gc->prpl->set_info( a->gc, utf8 ); - else - a->gc->prpl->set_info( a->gc, cmd[2] ); + a->gc->prpl->set_info( a->gc, cmd[2] ); } } |