1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Bug #1220 - Fixed an event in /hs activate and /ms del

(cherry picked from commit 49dd1c3409)
This commit is contained in:
Adam
2010-12-27 00:42:38 -05:00
parent b5091a373e
commit 0c686e7168
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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));
+1
View File
@@ -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);