From 988568f3d1cc2247fa3adbadd8daa0ee175fcb1d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 12 Mar 2006 14:26:15 +0000 Subject: *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 --- src/channels.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 819195871..aabf9664c 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -71,7 +71,7 @@ chanrec* ForceChan(chanrec* Ptr,ucrec *a,userrec* user, int created); chanrec::chanrec() { *name = *topic = *setby = *key = 0; - created = topicset = limit = binarymodes = 0; + created = topicset = limit = 0; internal_userlist.clear(); memset(&custom_modes,0,64); } @@ -254,7 +254,8 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri /* create a new one */ chanlist[cname] = new chanrec(); strlcpy(chanlist[cname]->name, cname,CHANMAX); - chanlist[cname]->binarymodes = CM_TOPICLOCK | CM_NOEXTERNAL; + chanlist[cname]->custom_modes[CM_TOPICLOCK] = chanlist[cname]->custom_modes[CM_NOEXTERNAL] = 1; + //chanlist[cname]->binarymodes = CM_TOPICLOCK | CM_NOEXTERNAL; chanlist[cname]->created = TIME; *chanlist[cname]->topic = 0; strlcpy(chanlist[cname]->setby, user->nick,NICKMAX-1); @@ -311,7 +312,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri } } } - if (Ptr->binarymodes & CM_INVITEONLY) + if (Ptr->custom_modes[CM_INVITEONLY]) { MOD_RESULT = 0; irc::string xname(Ptr->name); -- cgit v1.3.1-10-gc9f91