mirror of
https://github.com/anope/anope.git
synced 2026-07-02 10:26:37 +02:00
Initially attach all modules to all events, and detach them as the events are run if they are not implemented per module
This commit is contained in:
@@ -80,7 +80,7 @@ class CommandHSSet : public Command
|
||||
Log(LOG_ADMIN, source, this) << "to set the vhost of " << na->nick << " to " << (!user.empty() ? user + "@" : "") << host;
|
||||
|
||||
na->SetVhost(user, host, source.GetNick());
|
||||
FOREACH_MOD(I_OnSetVhost, OnSetVhost(na));
|
||||
FOREACH_MOD(OnSetVhost, (na));
|
||||
if (!user.empty())
|
||||
source.Reply(_("VHost for \002%s\002 set to \002%s\002@\002%s\002."), nick.c_str(), user.c_str(), host.c_str());
|
||||
else
|
||||
@@ -182,7 +182,7 @@ class CommandHSSetAll : public Command
|
||||
|
||||
na->SetVhost(user, host, source.GetNick());
|
||||
this->Sync(na);
|
||||
FOREACH_MOD(I_OnSetVhost, OnSetVhost(na));
|
||||
FOREACH_MOD(OnSetVhost, (na));
|
||||
if (!user.empty())
|
||||
source.Reply(_("VHost for group \002%s\002 set to \002%s\002@\002%s\002."), nick.c_str(), user.c_str(), host.c_str());
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user