From f9636a2eff46f6829bf9e01c711ab1ba45a7d50a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 22:40:57 +0000 Subject: So much stuff changed in this one, i forgot most of it. Oh yeah, main thing is ModeHandler and ModeWatcher classes now take an InspIRCd* to their constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4858 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modes/cmode_b.h | 4 +++- include/modes/cmode_h.h | 4 +++- include/modes/cmode_i.h | 4 +++- include/modes/cmode_k.h | 4 +++- include/modes/cmode_l.h | 4 +++- include/modes/cmode_m.h | 4 +++- include/modes/cmode_n.h | 4 +++- include/modes/cmode_o.h | 4 +++- include/modes/cmode_p.h | 4 +++- include/modes/cmode_s.h | 4 +++- include/modes/cmode_t.h | 4 +++- include/modes/cmode_v.h | 4 +++- include/modes/umode_i.h | 4 +++- include/modes/umode_n.h | 4 +++- include/modes/umode_o.h | 4 +++- include/modes/umode_s.h | 4 +++- include/modes/umode_w.h | 4 +++- 17 files changed, 51 insertions(+), 17 deletions(-) (limited to 'include/modes') diff --git a/include/modes/cmode_b.h b/include/modes/cmode_b.h index 34b90c9b9..e17a6909a 100644 --- a/include/modes/cmode_b.h +++ b/include/modes/cmode_b.h @@ -1,12 +1,14 @@ #include "mode.h" #include "channels.h" +class InspIRCd; + class ModeChannelBan : public ModeHandler { private: BanItem b; public: - ModeChannelBan(); + ModeChannelBan(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); std::string& AddBan(userrec *user,std::string& dest,chanrec *chan,int status); std::string& DelBan(userrec *user,std::string& dest,chanrec *chan,int status); diff --git a/include/modes/cmode_h.h b/include/modes/cmode_h.h index eaf2149af..e1253d03c 100644 --- a/include/modes/cmode_h.h +++ b/include/modes/cmode_h.h @@ -1,11 +1,13 @@ #include "mode.h" #include "channels.h" +class InspIRCd; + class ModeChannelHalfOp : public ModeHandler { private: public: - ModeChannelHalfOp(); + ModeChannelHalfOp(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); std::string AddHalfOp(userrec *user,const char *dest,chanrec *chan,int status); std::string DelHalfOp(userrec *user,const char *dest,chanrec *chan,int status); diff --git a/include/modes/cmode_i.h b/include/modes/cmode_i.h index 7320cb169..b8bea88a8 100644 --- a/include/modes/cmode_i.h +++ b/include/modes/cmode_i.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeChannelInviteOnly : public ModeHandler { public: - ModeChannelInviteOnly(); + ModeChannelInviteOnly(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/cmode_k.h b/include/modes/cmode_k.h index 8434fc5c4..16769b572 100644 --- a/include/modes/cmode_k.h +++ b/include/modes/cmode_k.h @@ -1,9 +1,11 @@ #include "mode.h" +class InspIRCd; + class ModeChannelKey : public ModeHandler { public: - ModeChannelKey(); + ModeChannelKey(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter); bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel); diff --git a/include/modes/cmode_l.h b/include/modes/cmode_l.h index 69c132e56..dbedb610a 100644 --- a/include/modes/cmode_l.h +++ b/include/modes/cmode_l.h @@ -1,9 +1,11 @@ #include "mode.h" +class InspIRCd; + class ModeChannelLimit : public ModeHandler { public: - ModeChannelLimit(); + ModeChannelLimit(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter); bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel); diff --git a/include/modes/cmode_m.h b/include/modes/cmode_m.h index d8cff2aa4..7f8380540 100644 --- a/include/modes/cmode_m.h +++ b/include/modes/cmode_m.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeChannelModerated : public ModeHandler { public: - ModeChannelModerated(); + ModeChannelModerated(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/cmode_n.h b/include/modes/cmode_n.h index ebed70103..96559b81d 100644 --- a/include/modes/cmode_n.h +++ b/include/modes/cmode_n.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeChannelNoExternal : public ModeHandler { public: - ModeChannelNoExternal(); + ModeChannelNoExternal(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/cmode_o.h b/include/modes/cmode_o.h index ff166b5e2..25b03a786 100644 --- a/include/modes/cmode_o.h +++ b/include/modes/cmode_o.h @@ -1,11 +1,13 @@ #include "mode.h" #include "channels.h" +class InspIRCd; + class ModeChannelOp : public ModeHandler { private: public: - ModeChannelOp(); + ModeChannelOp(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); std::string AddOp(userrec *user,const char *dest,chanrec *chan,int status); std::string DelOp(userrec *user,const char *dest,chanrec *chan,int status); diff --git a/include/modes/cmode_p.h b/include/modes/cmode_p.h index 87ffca4cb..38a043da8 100644 --- a/include/modes/cmode_p.h +++ b/include/modes/cmode_p.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeChannelPrivate : public ModeHandler { public: - ModeChannelPrivate(); + ModeChannelPrivate(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/cmode_s.h b/include/modes/cmode_s.h index 981bddfaf..b72038f26 100644 --- a/include/modes/cmode_s.h +++ b/include/modes/cmode_s.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeChannelSecret : public ModeHandler { public: - ModeChannelSecret(); + ModeChannelSecret(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/cmode_t.h b/include/modes/cmode_t.h index 7e852400b..8c4a27a4d 100644 --- a/include/modes/cmode_t.h +++ b/include/modes/cmode_t.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeChannelTopicOps : public ModeHandler { public: - ModeChannelTopicOps(); + ModeChannelTopicOps(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/cmode_v.h b/include/modes/cmode_v.h index 3e747ca9d..a2d94938d 100644 --- a/include/modes/cmode_v.h +++ b/include/modes/cmode_v.h @@ -1,11 +1,13 @@ #include "mode.h" #include "channels.h" +class InspIRCd; + class ModeChannelVoice : public ModeHandler { private: public: - ModeChannelVoice(); + ModeChannelVoice(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); std::string AddVoice(userrec *user,const char *dest,chanrec *chan,int status); std::string DelVoice(userrec *user,const char *dest,chanrec *chan,int status); diff --git a/include/modes/umode_i.h b/include/modes/umode_i.h index 61626f3ce..dad12473e 100644 --- a/include/modes/umode_i.h +++ b/include/modes/umode_i.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeUserInvisible : public ModeHandler { public: - ModeUserInvisible(); + ModeUserInvisible(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/umode_n.h b/include/modes/umode_n.h index cf449f324..bb4cb2717 100644 --- a/include/modes/umode_n.h +++ b/include/modes/umode_n.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeUserServerNoticeMask : public ModeHandler { public: - ModeUserServerNoticeMask(); + ModeUserServerNoticeMask(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/umode_o.h b/include/modes/umode_o.h index fd389b4b0..736909fdf 100644 --- a/include/modes/umode_o.h +++ b/include/modes/umode_o.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeUserOperator : public ModeHandler { public: - ModeUserOperator(); + ModeUserOperator(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/umode_s.h b/include/modes/umode_s.h index c108cb44d..f982d32b9 100644 --- a/include/modes/umode_s.h +++ b/include/modes/umode_s.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeUserServerNotice : public ModeHandler { public: - ModeUserServerNotice(); + ModeUserServerNotice(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; diff --git a/include/modes/umode_w.h b/include/modes/umode_w.h index e92d1ece2..ce3db0a52 100644 --- a/include/modes/umode_w.h +++ b/include/modes/umode_w.h @@ -1,8 +1,10 @@ #include "mode.h" +class InspIRCd; + class ModeUserWallops : public ModeHandler { public: - ModeUserWallops(); + ModeUserWallops(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); }; -- cgit v1.2.3