diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2013-12-09 05:57:36 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2013-12-09 05:57:36 +0100 |
commit | 1b4d62e2bc8b146d19a683f0cef936ce706fef79 (patch) | |
tree | 2331193439b7bbdb8dd5a8c7c48589cddd94d076 /modules/stats/irc2sql/irc2sql.h | |
parent | 43f608ff2bd08683c71ad089ebab68b324c8605e (diff) |
irc2sql: fixed incorrect usercount for channels and servers after netsplit, fixed not displaying the channelmodes
Diffstat (limited to 'modules/stats/irc2sql/irc2sql.h')
-rw-r--r-- | modules/stats/irc2sql/irc2sql.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/stats/irc2sql/irc2sql.h b/modules/stats/irc2sql/irc2sql.h index d2fcd7aca..b5fc8c37f 100644 --- a/modules/stats/irc2sql/irc2sql.h +++ b/modules/stats/irc2sql/irc2sql.h @@ -26,7 +26,7 @@ class IRC2SQL : public Module SQL::Query query; std::vector<Anope::string> TableList, ProcedureList, EventList; Anope::string prefix, GeoIPDB; - bool quitting, introduced_myself, UseGeoIP, ctcpuser, ctcpeob; + bool quitting, introduced_myself, UseGeoIP, ctcpuser, ctcpeob, firstrun; BotInfo *StatServ; PrimitiveExtensibleItem<bool> versionreply; @@ -41,8 +41,9 @@ class IRC2SQL : public Module public: IRC2SQL(const Anope::string &modname, const Anope::string &creator) : - Module(modname, creator, EXTRA | THIRD), sql("", ""), sqlinterface(this), versionreply(this, "CTCPVERSION") + Module(modname, creator, EXTRA | VENDOR), sql("", ""), sqlinterface(this), versionreply(this, "CTCPVERSION") { + firstrun = true; quitting = false; introduced_myself = false; } @@ -65,6 +66,8 @@ class IRC2SQL : public Module void OnChannelDelete(Channel *c) anope_override; void OnLeaveChannel(User *u, Channel *c) anope_override; void OnJoinChannel(User *u, Channel *c) anope_override; + EventReturn OnChannelModeSet(Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string ¶m) anope_override; + EventReturn OnChannelModeUnset(Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string ¶m) anope_override; void OnTopicUpdated(Channel *c, const Anope::string &user, const Anope::string &topic) anope_override; |