mirror of
https://github.com/anope/anope.git
synced 2026-06-30 09:36:37 +02:00
Store user away state and add it to the anope.user RPC event.
This commit is contained in:
+1
-7
@@ -25,13 +25,7 @@ using namespace Message;
|
||||
|
||||
void Away::Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags)
|
||||
{
|
||||
const Anope::string &msg = !params.empty() ? params[0] : "";
|
||||
|
||||
FOREACH_MOD(OnUserAway, (source.GetUser(), msg));
|
||||
if (!msg.empty())
|
||||
Log(source.GetUser(), "away") << "is now away: " << msg;
|
||||
else
|
||||
Log(source.GetUser(), "away") << "is no longer away";
|
||||
source.GetUser()->SetAway(params.empty() ? "" : params[0]);
|
||||
}
|
||||
|
||||
void Capab::Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags)
|
||||
|
||||
Reference in New Issue
Block a user