From a6adeaad20c5b5b2897f6d2afd9a53ad43f8fa99 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sat, 27 Apr 2013 04:57:31 -0500 Subject: [PATCH] Fix format string generation --- extensions/m_okick.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/m_okick.c b/extensions/m_okick.c index 29e8b6424..34f426bb7 100644 --- a/extensions/m_okick.c +++ b/extensions/m_okick.c @@ -37,6 +37,7 @@ #include "packet.h" #include "s_conf.h" #include "s_serv.h" +#include "messages.h" static int mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); @@ -107,14 +108,13 @@ mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char if((target_p = find_client(user)) == NULL) { - sendto_one(source_p, form_str(ERR_NOSUCHNICK), me.name, source_p->name, user); + sendto_one(source_p, form_str(ERR_NOSUCHNICK), user); return 0; } if((msptr = find_channel_membership(chptr, target_p)) == NULL) { - sendto_one(source_p, form_str(ERR_USERNOTINCHANNEL), - me.name, source_p->name, parv[1], parv[2]); + sendto_one(source_p, form_str(ERR_USERNOTINCHANNEL), parv[1], parv[2]); return 0; }