# Process AddUser
proc proc_adduser { nick uhost hand chan text } {
set addusernick [nick2hand $text]
if {[validuser $addusernick]} {
putserv "PRIVMSG $chan :\002$text\002 Is Already In User Database As \002$addusernick\002"
} else {
unset addusernick
set addusermask [maskhost $text![getchanhost $text $chan]]
adduser $text $addusermask
set addusernick [nick2hand $text]
putlog "\002$nick\002 Added \002$addusernick\($text\)\002 To User Database"
putserv "PRIVMSG $chan :$text Has Been Added To The Database."
}
When I use it.. it adds them to the userfile like this:
# Process DelUser
proc proc_deluser { nick uhost hand chan text } {
set delusernick [nick2hand $text]
if {[validuser $delusernick]} {
deluser $delusernick
Trying to figure out why I can't delete a user unless their on the channel?
Match a known handle and/or address to delete a user possibly but this idea is flawed if you have no idea what handle they were added under or address used.
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM