summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-04-12 22:38:34 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-04-12 22:38:34 +0200
commit4ded5ca9280d8538cb4aa8f478021476a5643e5c (patch)
tree25b3b884ba55d3399f84519fdf1d30bd0cfd8578 /src
parent66820092160fc24e21e437c0a186aa5922e424c6 (diff)
m_watch Be more strict when checking whether the watch list of a user is full
After a rehash MAX_WATCH can become lower than it was before
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_watch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp
index 0e532d65b..be05d7d2d 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -214,7 +214,7 @@ class CommandWatch : public Command
ext.set(user, wl);
}
- if (wl->size() == MAX_WATCH)
+ if (wl->size() >= MAX_WATCH)
{
user->WriteNumeric(512, "%s %s :Too many WATCH entries", user->nick.c_str(), nick);
return CMD_FAILURE;