diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-18 16:55:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-18 16:55:27 +0000 |
commit | 32a26fa539242d009ffab01e09cafdaba9270dac (patch) | |
tree | cef3ba7e424faa783c67689ec22838185eef752b /include/modes | |
parent | 3ca314bffcd18c2cc965594b46ca058e57aaa7e9 (diff) |
Someone please help me fix the warnings in modules caused by this change. All mode handler OnMode events, ModeWatcher::BeforeMode/AfterMode, plus OnRawMode now have a bool servermode parameter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8964 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modes')
-rw-r--r-- | include/modes/cmode_b.h | 4 | ||||
-rw-r--r-- | include/modes/cmode_h.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_i.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_k.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_l.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_m.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_n.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_o.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_p.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_s.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_t.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_v.h | 2 | ||||
-rw-r--r-- | include/modes/umode_i.h | 2 | ||||
-rw-r--r-- | include/modes/umode_n.h | 2 | ||||
-rw-r--r-- | include/modes/umode_o.h | 2 | ||||
-rw-r--r-- | include/modes/umode_s.h | 2 | ||||
-rw-r--r-- | include/modes/umode_w.h | 2 |
17 files changed, 18 insertions, 18 deletions
diff --git a/include/modes/cmode_b.h b/include/modes/cmode_b.h index e8274aff8..fc5eb0892 100644 --- a/include/modes/cmode_b.h +++ b/include/modes/cmode_b.h @@ -24,8 +24,8 @@ class ModeChannelBan : public ModeHandler BanItem b; public: ModeChannelBan(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); - std::string& AddBan(User *user,std::string& dest,Channel *chan,int status); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); + std::string& AddBan(User *user,std::string& dest,Channel *chan,int status, bool servermode); std::string& DelBan(User *user,std::string& dest,Channel *chan,int status); void DisplayList(User* user, Channel* channel); void DisplayEmptyList(User* user, Channel* channel); diff --git a/include/modes/cmode_h.h b/include/modes/cmode_h.h index 68ac89c4b..c8ea793c0 100644 --- a/include/modes/cmode_h.h +++ b/include/modes/cmode_h.h @@ -23,7 +23,7 @@ class ModeChannelHalfOp : public ModeHandler private: public: ModeChannelHalfOp(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); std::string AddHalfOp(User *user,const char *dest,Channel *chan,int status); std::string DelHalfOp(User *user,const char *dest,Channel *chan,int status); ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string ¶meter); diff --git a/include/modes/cmode_i.h b/include/modes/cmode_i.h index a727ad2c1..5c83afb18 100644 --- a/include/modes/cmode_i.h +++ b/include/modes/cmode_i.h @@ -21,5 +21,5 @@ class ModeChannelInviteOnly : public ModeHandler { public: ModeChannelInviteOnly(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); }; diff --git a/include/modes/cmode_k.h b/include/modes/cmode_k.h index 19572ffcd..dce0550fe 100644 --- a/include/modes/cmode_k.h +++ b/include/modes/cmode_k.h @@ -21,7 +21,7 @@ class ModeChannelKey : public ModeHandler { public: ModeChannelKey(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string ¶meter); bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, Channel* channel); void RemoveMode(Channel* channel); diff --git a/include/modes/cmode_l.h b/include/modes/cmode_l.h index abdb339a6..e1435dc62 100644 --- a/include/modes/cmode_l.h +++ b/include/modes/cmode_l.h @@ -21,7 +21,7 @@ class ModeChannelLimit : public ModeHandler { public: ModeChannelLimit(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string ¶meter); bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, Channel* channel); }; diff --git a/include/modes/cmode_m.h b/include/modes/cmode_m.h index fcc949825..69ec34703 100644 --- a/include/modes/cmode_m.h +++ b/include/modes/cmode_m.h @@ -21,5 +21,5 @@ class ModeChannelModerated : public ModeHandler { public: ModeChannelModerated(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); }; diff --git a/include/modes/cmode_n.h b/include/modes/cmode_n.h index 82a38d766..ccc967ed2 100644 --- a/include/modes/cmode_n.h +++ b/include/modes/cmode_n.h @@ -21,5 +21,5 @@ class ModeChannelNoExternal : public ModeHandler { public: ModeChannelNoExternal(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); }; diff --git a/include/modes/cmode_o.h b/include/modes/cmode_o.h index ce107f6b8..f78ac8eb0 100644 --- a/include/modes/cmode_o.h +++ b/include/modes/cmode_o.h @@ -23,7 +23,7 @@ class ModeChannelOp : public ModeHandler private: public: ModeChannelOp(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); std::string AddOp(User *user,const char *dest,Channel *chan,int status); std::string DelOp(User *user,const char *dest,Channel *chan,int status); ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string ¶meter); diff --git a/include/modes/cmode_p.h b/include/modes/cmode_p.h index ebe612c01..ac564d734 100644 --- a/include/modes/cmode_p.h +++ b/include/modes/cmode_p.h @@ -21,5 +21,5 @@ class ModeChannelPrivate : public ModeHandler { public: ModeChannelPrivate(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); }; diff --git a/include/modes/cmode_s.h b/include/modes/cmode_s.h index e8ddc2614..a6b2054c5 100644 --- a/include/modes/cmode_s.h +++ b/include/modes/cmode_s.h @@ -21,5 +21,5 @@ class ModeChannelSecret : public ModeHandler { public: ModeChannelSecret(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); }; diff --git a/include/modes/cmode_t.h b/include/modes/cmode_t.h index ad41f42e4..3a6d2e512 100644 --- a/include/modes/cmode_t.h +++ b/include/modes/cmode_t.h @@ -21,5 +21,5 @@ class ModeChannelTopicOps : public ModeHandler { public: ModeChannelTopicOps(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); }; diff --git a/include/modes/cmode_v.h b/include/modes/cmode_v.h index 0d0932066..f66761809 100644 --- a/include/modes/cmode_v.h +++ b/include/modes/cmode_v.h @@ -23,7 +23,7 @@ class ModeChannelVoice : public ModeHandler private: public: ModeChannelVoice(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); std::string AddVoice(User *user,const char *dest,Channel *chan,int status); std::string DelVoice(User *user,const char *dest,Channel *chan,int status); ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string ¶meter); diff --git a/include/modes/umode_i.h b/include/modes/umode_i.h index eb8854420..83223b8fd 100644 --- a/include/modes/umode_i.h +++ b/include/modes/umode_i.h @@ -21,6 +21,6 @@ class ModeUserInvisible : public ModeHandler { public: ModeUserInvisible(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); unsigned int GetCount(); }; diff --git a/include/modes/umode_n.h b/include/modes/umode_n.h index b1d88d0cf..7c2648abc 100644 --- a/include/modes/umode_n.h +++ b/include/modes/umode_n.h @@ -21,5 +21,5 @@ class ModeUserServerNoticeMask : public ModeHandler { public: ModeUserServerNoticeMask(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); }; diff --git a/include/modes/umode_o.h b/include/modes/umode_o.h index ed40320b1..31f166131 100644 --- a/include/modes/umode_o.h +++ b/include/modes/umode_o.h @@ -21,6 +21,6 @@ class ModeUserOperator : public ModeHandler { public: ModeUserOperator(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); unsigned int GetCount(); }; diff --git a/include/modes/umode_s.h b/include/modes/umode_s.h index 57cbd193e..047defd87 100644 --- a/include/modes/umode_s.h +++ b/include/modes/umode_s.h @@ -21,6 +21,6 @@ class ModeUserServerNotice : public ModeHandler { public: ModeUserServerNotice(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); unsigned int GetCount(); }; diff --git a/include/modes/umode_w.h b/include/modes/umode_w.h index e9c7b71f6..ac9adbc35 100644 --- a/include/modes/umode_w.h +++ b/include/modes/umode_w.h @@ -21,6 +21,6 @@ class ModeUserWallops : public ModeHandler { public: ModeUserWallops(InspIRCd* Instance); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); unsigned int GetCount(); }; |