summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-27 00:42:38 -0500
committerAdam <Adam@anope.org>2010-12-27 00:42:38 -0500
commit49dd1c34096623e916f6e5aba44f7036738c3344 (patch)
treec21cc7991718061dfa5239e9e56b51b27cee3de5
parentfce491e18c654c84f7d379beb202faa28f3b2b64 (diff)
Bug #1220 - Fixed an event in /hs activate and /ms del
-rw-r--r--modules/extra/db_mysql.cpp2
-rw-r--r--modules/extra/hs_request.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/extra/db_mysql.cpp b/modules/extra/db_mysql.cpp
index 3cc0ceacb..6f2fcd832 100644
--- a/modules/extra/db_mysql.cpp
+++ b/modules/extra/db_mysql.cpp
@@ -1371,7 +1371,7 @@ class DBMySQL : public Module
this->Escape(m->sender) + "', '" + this->Escape(m->text) + "', 'CHAN')");
}
- void OnMemoDel(NickCore *nc, MemoInfo *mi, Memo *m)
+ void OnMemoDel(const NickCore *nc, MemoInfo *mi, Memo *m)
{
if (m)
this->RunQuery("DELETE FROM `anope_ms_info` WHERE `receiver` = '" + this->Escape(nc->display) + "' AND `time` = " + stringify(m->time));
diff --git a/modules/extra/hs_request.cpp b/modules/extra/hs_request.cpp
index fbba8bb02..c3661f2fd 100644
--- a/modules/extra/hs_request.cpp
+++ b/modules/extra/hs_request.cpp
@@ -153,6 +153,7 @@ class CommandHSActivate : public Command
if (it != Requests.end())
{
na->hostinfo.SetVhost(it->second->ident, it->second->host, u->nick, it->second->time);
+ FOREACH_MOD(I_OnSetVhost, OnSetVhost(na));
if (HSRequestMemoUser)
memo_send(source, na->nick, _("[auto memo] Your requested vHost has been approved."), 2);