summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-09 18:59:36 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-09 18:59:36 +0000
commit49d8629c3f7dd38b21abe8c5d13f356efc21db4d (patch)
tree2523ad5d03771005ca88bdc78e2bd934c5c51ec1 /src/modules
parent4e286021d730168516bbfb8c3ad38d935f28f414 (diff)
Unbreak compile for real.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10132 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_callerid.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index 52828fdca..95e663a5b 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -174,7 +174,8 @@ public:
return CMD_SUCCESS;
/* Even if callerid mode is not set, we let them manage their ACCEPT list so that if they go +g they can
* have a list already setup. */
- bool atleastonechange = false;
+
+ std::string tok = parameters[0];
if (tok == "*")
{
@@ -187,6 +188,8 @@ public:
User* whotoremove = ServerInstance->FindNick(tok.substr(1));
if (whotoremove)
return (RemoveAccept(user, whotoremove, false) ? CMD_SUCCESS : CMD_FAILURE);
+ else
+ return CMD_FAILURE;
}
else
{