]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_channames.cpp
Unset umode +x when a different vhost is set on a user
[user/henk/code/inspircd.git] / src / modules / m_channames.cpp
index 40746af2cab80969da4d52dc0a72e058f47ba12a..0826fa56a91354e40e933241ff3ef43d346d3de5 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -76,8 +76,7 @@ class ModuleChannelNames : public Module
                                modes.push_back(c->name);
                                modes.push_back("-P");
 
-                               ServerInstance->SendMode(modes, ServerInstance->FakeClient);
-                               ServerInstance->PI->SendMode(c->name, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
+                               ServerInstance->SendGlobalMode(modes, ServerInstance->FakeClient);
                        }
                        const UserMembList* users = c->GetUsers();
                        for(UserMembCIter j = users->begin(); j != users->end(); ++j)
@@ -104,9 +103,9 @@ class ModuleChannelNames : public Module
                while (0 != (allowno = allowrange.GetToken()))
                        allowedmap[(unsigned char)(allowno)] = true;
 
-               allowedmap[7] = false;
-               allowedmap[' '] = false;
-               allowedmap[','] = false;
+               allowedmap[0x07] = false; // BEL
+               allowedmap[0x20] = false; // ' '
+               allowedmap[0x2C] = false; // ','
 
                ValidateChans();
        }