summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-11 21:10:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-11 21:10:42 +0000
commitaa46dbe05865d97cb3b876694c5b6a28cecccab7 (patch)
treec0e9b42f947989890753db558169ba99dac79b4d
parent5102d15bde5264f987b03576942023e68d8e9171 (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/trunk/inspircd@8145 e03df62e-2008-0410-955e-edbf42e46eb7
-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 b6530217a..9a3abe543 100644
--- a/src/modules/m_silence_ext.cpp
+++ b/src/modules/m_silence_ext.cpp
@@ -124,7 +124,7 @@ class cmd_silence : public command_t
DELETE(sl);
user->Shrink("silence_list");
}
- break;
+ return CMD_SUCCESS;
}
}
}
@@ -164,7 +164,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;