diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nickserv.c | 8 | ||||
| -rw-r--r-- | src/users.c | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/nickserv.c b/src/nickserv.c index 0c76c3064..7fcea6dab 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -4296,8 +4296,14 @@ int nsCheckNickTracking(User * u) char *nick; /* No nick alias or nick return false by default */ - if ((!(na = u->na)) || (!(nick = na->nick))) + if ((!(na = u->na)) || (!(nick = na->nick))) { return 0; + } + + /* nick is forbidden best return 0 */ + if (na->status & NS_VERBOTEN) { + return 0; + } /* Get the core for the requested nick */ nc = na->nc; diff --git a/src/users.c b/src/users.c index b824271bb..4cc41561e 100644 --- a/src/users.c +++ b/src/users.c @@ -729,7 +729,10 @@ void do_kill(char *nick, char *msg) user = finduser(nick); if (!user) - return; + if (debug) { + alog("debug: KILL of nonexistent nick: %s", nick); + } + return; if (debug) alog("debug: %s killed", nick); if ((na = user->na) && (!(na->status & NS_VERBOTEN)) |
