diff options
author | Robby- <robby@chat.be> | 2014-02-11 03:57:15 +0100 |
---|---|---|
committer | Robby- <robby@chat.be> | 2014-02-11 03:57:15 +0100 |
commit | 4dff710361ef672957563e520b025df7303d3986 (patch) | |
tree | 98c69c11ec1de75db237100c4970dbbccbac71e8 /modules/commands/ns_suspend.cpp | |
parent | fe80d2cdede46d82775dee492f96cb083f1a9071 (diff) |
ns_suspend: Show the setter of the suspension and the reason when manually unsuspending.
Diffstat (limited to 'modules/commands/ns_suspend.cpp')
-rw-r--r-- | modules/commands/ns_suspend.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp index 515e36a9e..241997d1c 100644 --- a/modules/commands/ns_suspend.cpp +++ b/modules/commands/ns_suspend.cpp @@ -181,9 +181,12 @@ class CommandNSUnSuspend : public Command return; } + NSSuspendInfo *si = na->nc->GetExt<NSSuspendInfo>("NS_SUSPENDED"); + + Log(LOG_ADMIN, source, this) << "for " << na->nick << " which was suspended by " << (!si->by.empty() ? si->by : "(none)") << " for: " << (!si->reason.empty() ? si->reason : "No reason"); + na->nc->Shrink<NSSuspendInfo>("NS_SUSPENDED"); - Log(LOG_ADMIN, source, this) << "for " << na->nick; source.Reply(_("Nick %s is now released."), nick.c_str()); FOREACH_MOD(OnNickUnsuspended, (na)); |