aboutsummaryrefslogtreecommitdiffstats
path: root/irc_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_channel.c')
-rw-r--r--irc_channel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/irc_channel.c b/irc_channel.c
index 714e974a..50fa14b3 100644
--- a/irc_channel.c
+++ b/irc_channel.c
@@ -254,6 +254,10 @@ int irc_channel_del_user(irc_channel_t *ic, irc_user_t *iu, irc_channel_del_user
irc_channel_user_t *icu;
if (!(icu = irc_channel_has_user(ic, iu))) {
+ if (iu == ic->irc->user && type == IRC_CDU_KICK) {
+ /* an error happened before joining, inform the client with a numeric */
+ irc_send_num(ic->irc, 403, "%s :Error joining channel (check control channel?)", ic->name);
+ }
return 0;
}