fix user validation
This commit is contained in:
parent
17a8265800
commit
eb1869a839
4
znc.tcl
4
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 <username>\" to remove"
|
||||
} else {
|
||||
puthelp "NOTICE $nick :$username does not exist"
|
||||
|
Reference in New Issue
Block a user