diff options
author | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
commit | 16ca76c2e7ab287e480185fbb03a0bb438351eda (patch) | |
tree | dfb25534afa2352b65b2ee707086cb5eecc96fbb /modules/chanserv/updown.cpp | |
parent | ff030c1eb7c3764f9add2a689479e84d616cabcb (diff) |
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'modules/chanserv/updown.cpp')
-rw-r--r-- | modules/chanserv/updown.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/chanserv/updown.cpp b/modules/chanserv/updown.cpp index 38ed65776..d3ceb617a 100644 --- a/modules/chanserv/updown.cpp +++ b/modules/chanserv/updown.cpp @@ -68,7 +68,8 @@ class CommandCSUp : public Command Channel *c = it->second->chan; SetModes(source.GetUser(), c); } - Log(LOG_COMMAND, source, this, NULL) << "on all channels to update their status modes"; + + logger.Command(LogType::COMMAND, source, _("{source} used {command} on all channels to update their status modes"), source.GetSource(), source.GetCommand()); return; } @@ -131,7 +132,8 @@ class CommandCSUp : public Command } } - Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, c->ci) << "to update the status modes of " << u->nick; + logger.Command(override ? LogType::OVERRIDE : LogType::COMMAND, source, ci, _("{source} used {command} on {channel} to update the status modes of {0}"), u->nick); + SetModes(u, c); } @@ -172,7 +174,7 @@ class CommandCSDown : public Command Channel *c = it->second->chan; RemoveAll(source.GetUser(), c); } - Log(LOG_COMMAND, source, this, NULL) << "on all channels to remove their status modes"; + logger.Command(LogType::COMMAND, source, _("{source} used {command} on all channels to remove their status modes"), source.GetSource(), source.GetCommand()); return; } @@ -236,7 +238,8 @@ class CommandCSDown : public Command } } - Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, c->ci) << "to remove the status modes from " << u->nick; + logger.Command(override ? LogType::OVERRIDE : LogType::COMMAND, source, ci, _("{source} used {command} on {channel} to remove the status modes from {0}"), u->nick); + RemoveAll(u, c); } |