Replace parv[0] with source_p->name.
This commit is contained in:
parent
0a849a8fa9
commit
3dfaa67120
8 changed files with 18 additions and 18 deletions
|
@ -126,7 +126,7 @@ mo_kill(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||
"Received KILL message for %s!%s@%s. From %s Path: %s (%s)",
|
||||
target_p->name, target_p->username, target_p->orighost,
|
||||
parv[0], me.name, reason);
|
||||
source_p->name, me.name, reason);
|
||||
|
||||
ilog(L_KILL, "%c %s %s!%s@%s %s %s",
|
||||
MyConnect(target_p) ? 'L' : 'G', get_oper_name(source_p),
|
||||
|
@ -245,7 +245,7 @@ ms_kill(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
{
|
||||
sendto_realops_snomask(IsService(source_p) ? SNO_SKILL : SNO_GENERAL, L_ALL,
|
||||
"Received KILL message for %s!%s@%s. From %s Path: %s!%s!%s!%s %s",
|
||||
target_p->name, target_p->username, target_p->orighost, parv[0],
|
||||
target_p->name, target_p->username, target_p->orighost, source_p->name,
|
||||
source_p->servptr->name, source_p->host, source_p->username,
|
||||
source_p->name, reason);
|
||||
|
||||
|
@ -259,7 +259,7 @@ ms_kill(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
sendto_realops_snomask(SNO_SKILL, L_ALL,
|
||||
"Received KILL message for %s!%s@%s. From %s %s",
|
||||
target_p->name, target_p->username, target_p->orighost,
|
||||
parv[0], reason);
|
||||
source_p->name, reason);
|
||||
|
||||
ilog(L_KILL, "S %s %s!%s@%s %s %s",
|
||||
source_p->name, target_p->name, target_p->username,
|
||||
|
|
|
@ -145,7 +145,7 @@ mr_nick(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
if(!clean_nick(nick, 1))
|
||||
{
|
||||
sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME),
|
||||
me.name, EmptyString(parv[0]) ? "*" : parv[0], parv[1]);
|
||||
me.name, EmptyString(source_p->name) ? "*" : source_p->name, parv[1]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,7 @@ m_nick(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
|||
/* check the nickname is ok */
|
||||
if(!clean_nick(nick, 1))
|
||||
{
|
||||
sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), me.name, parv[0], nick);
|
||||
sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), me.name, source_p->name, nick);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ m_nick(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
|||
change_local_nick(client_p, source_p, nick, 1);
|
||||
}
|
||||
else
|
||||
sendto_one(source_p, form_str(ERR_NICKNAMEINUSE), me.name, parv[0], nick);
|
||||
sendto_one(source_p, form_str(ERR_NICKNAMEINUSE), me.name, source_p->name, nick);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -389,7 +389,7 @@ ms_uid(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
|||
{
|
||||
char *s = LOCAL_COPY(parv[9]);
|
||||
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Long realname from server %s for %s",
|
||||
parv[0], parv[1]);
|
||||
source_p->name, parv[1]);
|
||||
s[REALLEN] = '\0';
|
||||
parv[9] = s;
|
||||
}
|
||||
|
@ -490,7 +490,7 @@ ms_euid(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
{
|
||||
char *s = LOCAL_COPY(parv[11]);
|
||||
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Long realname from server %s for %s",
|
||||
parv[0], parv[1]);
|
||||
source_p->name, parv[1]);
|
||||
s[REALLEN] = '\0';
|
||||
parv[11] = s;
|
||||
}
|
||||
|
|
|
@ -148,7 +148,7 @@ ms_squit(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
":%s WALLOPS :Remote SQUIT %s from %s (%s)",
|
||||
me.id, target_p->name, source_p->name, comment);
|
||||
|
||||
ilog(L_SERVER, "SQUIT From %s : %s (%s)", parv[0], target_p->name, comment);
|
||||
ilog(L_SERVER, "SQUIT From %s : %s (%s)", source_p->name, target_p->name, comment);
|
||||
}
|
||||
exit_client(client_p, target_p, source_p, comment);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue