mIRC Home    About    Download    Register    News    Help

Print Thread
New ideas #197933 16/04/08 11:41 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
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?

Last edited by kwell; 16/04/08 11:41 PM.
Re: New ideas [Re: kwell] #197941 17/04/08 09:13 AM
Joined: Aug 2006
Posts: 182
T
Thrull Offline
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2006
Posts: 182
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.

Last edited by Thrull; 17/04/08 09:33 AM.

Yar