can anyone help me with this code. i can't get it to work. when someone logs out in either %mirc.adminsonline or %mirc.opersonline it removes there name but it just adds the code
($remove(%mirc.adminsonline,%nickname,
to the variable. that code was for when an admin logs out. its the same with the opers variable. the code i need help with is here:
if ($2 == PRIVMSG) && ($3 == mIRCrosoft_Host) && ($remove($4,:) == !Logout) {
if (%nickname $+ $chr(44) isin %mirc.adminsonline) {
set %mirc.adminsonline ($remove(%mirc.adminsonline,%nickname $+ $chr(44))
sockwrite -n extreme MODE #mIRCrosoft -o %nickname
sockwrite -n extreme PRIVMSG %nickname :You have been logged out.
halt
}
if (%nickname $+ $chr(44) isin %mirc.opersonline) {
set %mirc.opersonline ($remove(%mirc.opersonline,%nickname $+ $chr(44))
sockwrite -n extreme MODE #mIRCrosoft -o %nickname
sockwrite -n extreme PRIVMSG %nickname :You have been logged out.
halt
}
elseif (%nickname $+ $chr(44) !isin %mirc.adminsonline) || (%nickname $+ $chr(44) !isin %mirc.opersonline) {
sockwrite -n extreme PRIVMSG %nickname :You are not logged in.
halt
}
}
please can someone help