aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_silence_ext.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-10-11 21:10:51 +0000
committerGravatar brain2007-10-11 21:10:51 +0000
commit0a5342342fe22ab363cee7c8139bb7514a8a2751 (patch)
tree55f4a44d8f0f9559cca690194851a925c55c06d0 /src/modules/m_silence_ext.cpp
parentFixed bug #437 (Empty userstats setting denies stats to opers too) (diff)
Fix for bug #435 and fix return codes (these cannot be localonly for add/remove as its more efficient to propogate the SILENCE to the remote server so that messages can be blocked there and not routed)
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8146 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_silence_ext.cpp')
-rw-r--r--src/modules/m_silence_ext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_silence_ext.cpp b/src/modules/m_silence_ext.cpp
index 1bb3b26e5..e07e4b78d 100644
--- a/src/modules/m_silence_ext.cpp
+++ b/src/modules/m_silence_ext.cpp
@@ -127,7 +127,7 @@ class cmd_silence : public command_t
DELETE(sl);
user->Shrink("silence_list");
}
- break;
+ return CMD_SUCCESS;
}
}
}
@@ -167,7 +167,7 @@ class cmd_silence : public command_t
sl->push_back(silenceset(mask,pattern));
}
user->WriteServ("951 %s %s :Added %s %s to silence list",user->nick, user->nick, mask.c_str(), DecompPattern(pattern).c_str());
- return CMD_LOCALONLY;
+ return CMD_SUCCESS;
}
}
return CMD_LOCALONLY;