X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..fd4ba65e17a00f7cbcd8c24427a61769642650b6:/modules/core/m_kick.c diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c index d475aaf..e2189de 100644 --- a/modules/core/m_kick.c +++ b/modules/core/m_kick.c @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: m_kick.c 258 2005-09-21 23:57:17Z nenolod $ + * $Id: m_kick.c 3317 2007-03-28 23:17:06Z jilles $ */ #include "stdinc.h" @@ -49,7 +49,7 @@ struct Message kick_msgtab = { mapi_clist_av1 kick_clist[] = { &kick_msgtab, NULL }; -DECLARE_MODULE_AV1(kick, NULL, NULL, kick_clist, NULL, NULL, "$Revision: 258 $"); +DECLARE_MODULE_AV1(kick, NULL, NULL, kick_clist, NULL, NULL, "$Revision: 3317 $"); /* ** m_kick @@ -74,10 +74,6 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p if(MyClient(source_p) && !IsFloodDone(source_p)) flood_endgrace(source_p); - comment = LOCAL_COPY((EmptyString(parv[3])) ? parv[2] : parv[3]); - if(strlen(comment) > (size_t) REASONLEN) - comment[REASONLEN] = '\0'; - *buf = '\0'; if((p = strchr(parv[1], ','))) *p = '\0'; @@ -163,6 +159,10 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p return 0; } + comment = LOCAL_COPY((EmptyString(parv[3])) ? who->name : parv[3]); + if(strlen(comment) > (size_t) REASONLEN) + comment[REASONLEN] = '\0'; + /* jdc * - In the case of a server kicking a user (i.e. CLEARCHAN), * the kick should show up as coming from the server which did