projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KICK user only if he's really in the channel!
[srvx.git]
/
src
/
mod-watchdog.c
diff --git
a/src/mod-watchdog.c
b/src/mod-watchdog.c
index e62bcd003156df78c685472dabfcb3eadaeb59c8..65935bd8105bd1619835171b366d2014681516b1 100644
(file)
--- a/
src/mod-watchdog.c
+++ b/
src/mod-watchdog.c
@@
-360,7
+360,8
@@
watchdog_detected_badword(struct userNode *user, struct chanNode *chan, struct b
free(hostmask);
case BADACTION_KICK:
- KickChannelUser(user, chan, watchdog, reason);
+ if(GetUserMode(chan, user))
+ KickChannelUser(user, chan, watchdog, reason);
break;
case BADACTION_KILL:
DelUser(user, watchdog, 1, reason);