diff options
| author | 2014-04-12 22:38:34 +0200 | |
|---|---|---|
| committer | 2014-04-12 22:38:34 +0200 | |
| commit | 4ded5ca9280d8538cb4aa8f478021476a5643e5c (patch) | |
| tree | 25b3b884ba55d3399f84519fdf1d30bd0cfd8578 /src/modules/m_watch.cpp | |
| parent | Merge pull request #827 from Robby-/insp20-helpopconf (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/modules/m_watch.cpp')
| -rw-r--r-- | src/modules/m_watch.cpp | 2 |
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; |
