]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Remove /summon and /users (I think 15+ years of being marked deprecated is enough...
[user/henk/code/inspircd.git] / src / modules.cpp
index 0ddd6bdab2bf5055a2994615f7fab4f0318a98d8..3bd4886a477c0a570a4c06b1052079eb52d2e1d9 100644 (file)
@@ -191,7 +191,7 @@ void                Module::OnSetAway(userrec* user) { }
 void           Module::OnCancelAway(userrec* user) { }
 int            Module::OnUserList(userrec* user, chanrec* Ptr, CUList* &userlist) { return 0; }
 int            Module::OnWhoisLine(userrec* user, userrec* dest, int &numeric, std::string &text) { return 0; }
-void           Module::OnBuildExemptList(MessageType message_type, chanrec* chan, userrec* sender, char status, CUList &exempt_list) { }
+void           Module::OnBuildExemptList(MessageType message_type, chanrec* chan, userrec* sender, char status, CUList &exempt_list, const std::string &text) { }
 void           Module::OnGarbageCollect() { }
 void           Module::OnBufferFlushed(userrec* user) { }
 
@@ -1012,7 +1012,7 @@ bool ConfigReader::ReadFlag(const std::string &tag, const std::string &name, int
 }
 
 
-long ConfigReader::ReadInteger(const std::string &tag, const std::string &name, const std::string &default_value, int index, bool needs_unsigned)
+int ConfigReader::ReadInteger(const std::string &tag, const std::string &name, const std::string &default_value, int index, bool need_positive)
 {
        int result;
        
@@ -1022,18 +1022,18 @@ long ConfigReader::ReadInteger(const std::string &tag, const std::string &name,
                return 0;
        }
        
-       if ((needs_unsigned) && (result < 0))
+       if ((need_positive) && (result < 0))
        {
-               this->error = CONF_NOT_UNSIGNED;
+               this->error = CONF_INT_NEGATIVE;
                return 0;
        }
        
        return result;
 }
 
-long ConfigReader::ReadInteger(const std::string &tag, const std::string &name, int index, bool needs_unsigned)
+int ConfigReader::ReadInteger(const std::string &tag, const std::string &name, int index, bool need_positive)
 {
-       return ReadInteger(tag, name, "", index, needs_unsigned);
+       return ReadInteger(tag, name, "", index, need_positive);
 }
 
 long ConfigReader::GetError()