Skip to content
General IRCX

$remove

A TG007 community discussion started by Rhys.

Discussion 3 posts
Page 1 of 1
Open
Topic #2076 · 3 published posts · 1,241 views

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

you had this

 

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

 

 

and it should be this

 

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

My code does NOT have bugs. It just develops random features.

thanks ozzy. i did try that but it didn't work at all and now it has. thanks anyway smile.gif

Edited Dec 2, 2004 5:20 PM by xRhysx