From eb1869a839908881d5121f3c86f2780c48d2baef Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Tue, 19 Jan 2016 02:47:31 +0100 Subject: [PATCH] fix user validation --- znc.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/znc.tcl b/znc.tcl index 69c8568..489b912 100644 --- a/znc.tcl +++ b/znc.tcl @@ -261,7 +261,7 @@ proc znc:confirm {nick host handle chan text} { znc:blockuser:unblock $username chattr $username -C puthelp "NOTICE $nick :$username is now confirmed." - } elseif { validuser $username } { + } elseif [ validuser $username ] { puthelp "NOTICE $nick :$username is already confirmed." } else { puthelp "NOTICE $nick :$username does not exist" @@ -278,7 +278,7 @@ proc znc:deny {nick host handle chan text} { znc:controlpanel:DelUser $username deluser $username puthelp "NOTICE $nick :$username is now denied." - } elseif { validuser $username } { + } elseif [ validuser $username ] { puthelp "NOTICE $nick :$username is already confirmed. Use \"${scriptCommandPrefix}DelUser \" to remove" } else { puthelp "NOTICE $nick :$username does not exist"