summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-04 15:31:21 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-04 15:31:21 +0000
commiteed401b6ecb6e1b88ee8ca3aa4c0b4df491e2035 (patch)
tree9719afa952f0621ff405937027a5348121fca3b4 /src/channels.cpp
parent904161fdba32468ff4d97d9533e62809131ed1a2 (diff)
Oops, actually, return 1 to block change, 0 to check it, -1 to allow it regardless. Update docs in header also.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10083 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 19cfccc79..a0ba81a5f 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -81,7 +81,7 @@ int Channel::SetTopic(User *u, std::string &ntopic)
/* 0: check status, 1: don't, -1: disallow change silently */
FOREACH_RESULT(I_OnLocalTopicChange,OnLocalTopicChange(u,this,ntopic));
- if (MOD_RESULT == -1)
+ if (MOD_RESULT == 1)
return CMD_FAILURE;
else if (MOD_RESULT == 0)
{