diff options
| author | 2013-05-18 12:03:55 -0700 | |
|---|---|---|
| committer | 2013-05-18 12:03:55 -0700 | |
| commit | 8f27fefa75e2952e7ab8757eb9fe4af4586817f0 (patch) | |
| tree | 752def83ea80788d6a04fb8cc8358146915e7c4a /src/modules/m_watch.cpp | |
| parent | Merge pull request #541 from SaberUK/master+chanlog (diff) | |
| parent | Remove the size argument from IsChannel and IsNick. (diff) | |
Merge pull request #543 from SaberUK/master+sizeparam-removal
Remove the size argument from IsChannel and IsNick.
Diffstat (limited to 'src/modules/m_watch.cpp')
| -rw-r--r-- | src/modules/m_watch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 1a0594637..712699775 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -146,7 +146,7 @@ class CommandWatch : public Command CmdResult remove_watch(User* user, const char* nick) { // removing an item from the list - if (!ServerInstance->IsNick(nick, ServerInstance->Config->Limits.NickMax)) + if (!ServerInstance->IsNick(nick)) { user->WriteNumeric(942, "%s %s :Invalid nickname", user->nick.c_str(), nick); return CMD_FAILURE; @@ -196,7 +196,7 @@ class CommandWatch : public Command CmdResult add_watch(User* user, const char* nick) { - if (!ServerInstance->IsNick(nick, ServerInstance->Config->Limits.NickMax)) + if (!ServerInstance->IsNick(nick)) { user->WriteNumeric(942, "%s %s :Invalid nickname",user->nick.c_str(),nick); return CMD_FAILURE; |
