From a75522e6a5663d0a29345528e55dadee652df2d5 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 18 Mar 2010 00:22:35 +0100 Subject: [PATCH] BAN: xlines do not have oper reasons, their "reason" is already oper only. --- modules/core/m_ban.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core/m_ban.c b/modules/core/m_ban.c index 0efe6ef..1fecd3f 100644 --- a/modules/core/m_ban.c +++ b/modules/core/m_ban.c @@ -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 {