Jump to content

$remove


Rhys

Recommended Posts

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

Link to comment
Share on other sites

you had this

 

($remove(%mirc.opersonline,%nickname $+ $chr(44))

 

 

and it should be this

 

$remove(%mirc.opersonline,%nickname $+ $chr(44))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...