diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-25 11:11:48 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-25 11:11:48 +0200 |
commit | 51a3d12c3187bb0af530bbf36cf8619b57d0ea1a (patch) | |
tree | 93543747ec22abc084f128f16f75c64ed55837c0 /irc_send.c | |
parent | 5588edf5779d449f0f1ed1b2ef6f2af510d92632 (diff) |
Allow change nicknames when moving contacts between groups. Also fixing a
bug that caused many empty channel mode changes being sent.
Diffstat (limited to 'irc_send.c')
-rw-r--r-- | irc_send.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -395,5 +395,6 @@ void irc_send_channel_user_mode_diff( irc_channel_t *ic, irc_user_t *iu, g_snprintf( from, sizeof( from ), "%s!%s@%s", ic->irc->root->nick, ic->irc->root->user, ic->irc->root->host ); - irc_write( ic->irc, ":%s MODE %s %s", from, ic->name, changes ); + if( *changes ) + irc_write( ic->irc, ":%s MODE %s %s", from, ic->name, changes ); } |