]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_park.cpp
Change 974 numeric to 490 to avoid collision with Insp's failed to load module error
[user/henk/code/inspircd.git] / src / modules / m_park.cpp
index 264a3ba0f4e61904f79b76eee637ecdacac8112a..1d71672746fefa4f02b08671c200d2ea6aaa0fa1 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
  *                       E-mail:
  *                <brain@chatspike.net>
  *               <Craig@chatspike.net>
@@ -152,7 +152,7 @@ class cmd_unpark : public command_t
                if (key == atoi(parameters[1]))
                {
                        // first part the user from all chans theyre on, so things dont get messy
-                       for (int i = 0; i < user->chans.size(); i++)
+                       for (unsigned int i = 0; i < user->chans.size(); i++)
                        {
                                if (user->chans[i].channel != NULL)
                                {
@@ -232,6 +232,11 @@ class ModulePark : public Module
        {
        }
 
+       void Implements(char* List)
+       {
+               List[I_On005Numeric] = List[I_OnRehash] = List[I_OnUserQuit] = List[I_OnUserPreMessage] = List[I_OnUserPreNick] = List[I_OnBackgroundTimer] = List[I_OnWhois] = 1;
+       }
+
        virtual void OnRehash(std::string parameter)
        {
                this->ReadSettings();