monitor: ensure monitored nicknames are valid (ref. elemental-ircd/elemental-ircd#187)
This commit is contained in:
parent
72dee03d50
commit
413c61aaf5
1 changed files with 3 additions and 0 deletions
|
@ -114,6 +114,9 @@ add_monitor(struct Client *client_p, const char *nicks)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!is_valid_nick(name))
|
||||
continue;
|
||||
|
||||
monptr = find_monitor(name, 1);
|
||||
|
||||
/* already monitoring this nick */
|
||||
|
|
Loading…
Reference in a new issue