mIRC Homepage

New ideas

Posted By: kwell

New ideas - 16/04/08 11:41 PM

If I have an +b in a channel, it would be valid use ...
Code:
RAW 474:*:{
  cs unban $2 
  join $2 
}

The problem arises when we do not have sufficient level

#Chan unable to join channel (address is banned)
-
#Chan unable to join channel (address is banned)
-
#Chan unable to join channel (address is banned)
-
#Chan unable to join channel (address is banned)
-
This is my solution...
Code:
RAW 474:*:{
  inc %x
  if (%x <= 1) { cs unban $2 | join $2 }
  else { unset %x | halt }
}

The question is ... Does anyone have any other solution?
Posted By: Thrull

Re: New ideas - 17/04/08 09:13 AM

Code:
RAW 474:*:{
if %setUnbanJoin != 1 {
  cs unban $2 
  join $2 
set -u5 %setUnbanJoin 1
}
}


Untested.

That should work without needing a while statement. You can also do this using groups, but I find them annoying to use. You might be able to pick a smaller number for unset, but it needs to be greater than your average ping.
© 2020 mIRC Discussion Forums