summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-27 00:42:38 -0500
committerAdam <Adam@anope.org>2010-12-27 01:02:18 -0500
commit0c686e7168cfbdd74ec9d2b4df20f0bc224f677e (patch)
treebc06ababfd4412831cd9b24f8e9d277936961c45
parentb5091a373e8ee9a2781ccc7673597f0f97b5e1b3 (diff)
Bug #1220 - Fixed an event in /hs activate and /ms del
(cherry picked from commit 49dd1c34096623e916f6e5aba44f7036738c3344)
-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 fb1d21b45..27d99190f 100644
--- a/modules/extra/db_mysql.cpp
+++ b/modules/extra/db_mysql.cpp
@@ -1314,7 +1314,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 9ae097d27..8ce247b3c 100644
--- a/modules/extra/hs_request.cpp
+++ b/modules/extra/hs_request.cpp
@@ -156,6 +156,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(u, na->nick, _("[auto memo] Your requested vHost has been approved."), 2);