diff --git a/modules/m_monitor.c b/modules/m_monitor.c index 1274a3c9..aa003f2e 100644 --- a/modules/m_monitor.c +++ b/modules/m_monitor.c @@ -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 */