mirror of
https://github.com/anope/anope.git
synced 2026-07-01 02:46:37 +02:00
added protocol support for incoming NOTICEs
This commit is contained in:
@@ -244,6 +244,22 @@ void MOTD::Run(MessageSource &source, const std::vector<Anope::string> ¶ms)
|
||||
IRCD->SendNumeric(422, source.GetSource(), ":- MOTD file not found! Please contact your IRC administrator.");
|
||||
}
|
||||
|
||||
void Notice::Run(MessageSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
Anope::string message = params[1];
|
||||
|
||||
User *u = source.GetUser();
|
||||
|
||||
/* ignore channel notices */
|
||||
if (!IRCD->IsChannelValid(params[0]))
|
||||
{
|
||||
BotInfo *bi = BotInfo::Find(params[0]);
|
||||
if (!bi)
|
||||
return;
|
||||
FOREACH_MOD(OnBotNotice, (u, bi, message));
|
||||
}
|
||||
}
|
||||
|
||||
void Part::Run(MessageSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
User *u = source.GetUser();
|
||||
|
||||
Reference in New Issue
Block a user