projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
741843e
)
changed Watchdog cmd_unregister: added information of unregistrar to part message
author
lukas9950
<lukas9950@gmail.com>
Thu, 15 Dec 2011 19:37:54 +0000
(20:37 +0100)
committer
pk910
<philipp@zoelle1.de>
Thu, 15 Dec 2011 19:48:46 +0000
(20:48 +0100)
src/mod-watchdog.c
patch
|
blob
|
history
diff --git
a/src/mod-watchdog.c
b/src/mod-watchdog.c
index 95486106038b6a1a13f5696c5e05977f9835b1f7..d9da25d63488c01ca5f4eacf6277089e416ea793 100644
(file)
--- a/
src/mod-watchdog.c
+++ b/
src/mod-watchdog.c
@@
-348,7
+348,9
@@
static MODCMD_FUNC(cmd_unregister)
if(chan && chan->channel == channel) {
//found, unregister it!
- DelChannelUser(watchdog, channel, "unregistered.", 0);
+ char reason[MAXLEN];
+ sprintf(reason, "Unregistered by %s.", user->handle_info->handle);
+ DelChannelUser(watchdog, channel, reason, 0);
dict_remove(chanlist, channel->name);
reply("CSMSG_UNREG_SUCCESS", channel->name);
return 1;