mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 16:30:52 +01:00
Fix format string generation
This commit is contained in:
parent
e232f35c63
commit
a6adeaad20
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue