BAN: xlines do not have oper reasons, their "reason" is already oper only.

This commit is contained in:
Jilles Tjoelker 2010-03-18 00:22:35 +01:00
parent 112e8a666b
commit a75522e6a5
1 changed files with 1 additions and 2 deletions

View File

@ -157,8 +157,7 @@ ms_ban(struct Client *client_p, struct Client *source_p, int parc, const char *p
aconf->info.oper = operhash_add(oper);
aconf->created = created;
aconf->hold = hold;
p = strchr(parv[parc - 1], '|');
if (p == NULL)
if (ntype != CONF_KILL || (p = strchr(parv[parc - 1], '|')) == NULL)
aconf->passwd = rb_strdup(parv[parc - 1]);
else
{