summaryrefslogtreecommitdiff
path: root/src/cmd_topic.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-03-12 14:49:30 +0000
committerGravatar brain2006-03-12 14:49:30 +0000
commitced58c3be3f1da8dcf70c3904e5fe4bdaabf0e3d (patch)
treedfe3ef7f3758ba7ae95fd1ae70c93d26238b7917 /src/cmd_topic.cpp
parent*NEEDS TESTING* changed binarymodes to use the custom_modes entries (diff)
Renamed to chanrec::modes
Renamed IsCustomModeSet to IsModeSet GetModeParameter will now return the channel limit (as a string) for a request for mode 'l' and the channel key for a request for mode 'k'. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3692 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_topic.cpp')
-rw-r--r--src/cmd_topic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_topic.cpp b/src/cmd_topic.cpp
index 37cfe035e..b8c60240d 100644
--- a/src/cmd_topic.cpp
+++ b/src/cmd_topic.cpp
@@ -70,7 +70,7 @@ void cmd_topic::Handle (char **parameters, int pcnt, userrec *user)
Ptr = FindChan(parameters[0]);
if (Ptr)
{
- if ((Ptr->custom_modes[CM_SECRET]) && (!Ptr->HasUser(user)))
+ if ((Ptr->modes[CM_SECRET]) && (!Ptr->HasUser(user)))
{
WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, Ptr->name);
return;
@@ -103,7 +103,7 @@ void cmd_topic::Handle (char **parameters, int pcnt, userrec *user)
WriteServ(user->fd,"442 %s %s :You're not on that channel!",user->nick, Ptr->name);
return;
}
- if ((Ptr->custom_modes[CM_TOPICLOCK]) && (cstatus(user,Ptr)<STATUS_HOP))
+ if ((Ptr->modes[CM_TOPICLOCK]) && (cstatus(user,Ptr)<STATUS_HOP))
{
WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel", user->nick, Ptr->name);
return;