aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_send.c')
-rw-r--r--irc_send.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/irc_send.c b/irc_send.c
index b62d2011..b6ffe130 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -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 );
}