diff options
| author | 2006-03-12 14:26:15 +0000 | |
|---|---|---|
| committer | 2006-03-12 14:26:15 +0000 | |
| commit | 988568f3d1cc2247fa3adbadd8daa0ee175fcb1d (patch) | |
| tree | 00623416ea844e1fce5343f1073bb6dbaa75511b /src/cmd_topic.cpp | |
| parent | Removed chanrec::binarymodes - insp wont compile atm do not use :p (diff) | |
*NEEDS TESTING* changed binarymodes to use the custom_modes entries
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3691 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_topic.cpp')
| -rw-r--r-- | src/cmd_topic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_topic.cpp b/src/cmd_topic.cpp index 463184de7..37cfe035e 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->binarymodes & CM_SECRET) && (!Ptr->HasUser(user))) + if ((Ptr->custom_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->binarymodes & CM_TOPICLOCK) && (cstatus(user,Ptr)<STATUS_HOP)) + if ((Ptr->custom_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; |
