projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4728a00
)
Do not eat first word in ?part reason.
author
ThiefMaster
<thiefmaster@gamesurge.net>
Mon, 10 Dec 2007 00:11:37 +0000
(
01:11
+0100)
committer
Michael Poole
<mdpoole@troilus.org>
Wed, 12 Dec 2007 02:47:59 +0000
(21:47 -0500)
src/opserv.c
patch
|
blob
|
history
diff --git
a/src/opserv.c
b/src/opserv.c
index 8a5f2a53fcf034130be5f90f1d5a85a0355e2cf5..92cee32c2d9dfdb25084492517f399d2a4120143 100644
(file)
--- a/
src/opserv.c
+++ b/
src/opserv.c
@@
-1159,7
+1159,7
@@
static MODCMD_FUNC(cmd_part)
reply("OSMSG_NOT_ON_CHANNEL", cmd->parent->bot->nick, channel->name);
return 0;
}
- reason = (argc <
3) ? "Leaving." : unsplit_string(argv+2, argc-2
, NULL);
+ reason = (argc <
2) ? "Leaving." : unsplit_string(argv+1, argc-1
, NULL);
reply("OSMSG_LEAVING", channel->name);
DelChannelUser(cmd->parent->bot, channel, reason, 0);
return 1;