From 0c686e7168cfbdd74ec9d2b4df20f0bc224f677e Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 27 Dec 2010 00:42:38 -0500 Subject: [PATCH] Bug #1220 - Fixed an event in /hs activate and /ms del (cherry picked from commit 49dd1c34096623e916f6e5aba44f7036738c3344) --- modules/extra/db_mysql.cpp | 2 +- modules/extra/hs_request.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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);