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:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user