mIRC Home    About    Download    Register    News    Help

Print Thread
#124124 02/07/05 09:45 PM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
I've this following script:

Code:
on 1:JOIN:#channel: {
  if ($nick == CLANTAG*) .mode # +o $nick
  else ban -k # $nick $3 You are not welcome in our private channel.
  .notice $nick Whuppie, not welcome :>
  .timer 1 2 mode # -b $3
}
  


But this doesnt wok as i want. If i join with the clantag, then i'll banned too. And the unban mode doenst work automatically..
confused

I dont know what is wrong, but help me... cool

#124125 02/07/05 10:00 PM
Joined: Mar 2003
Posts: 48
F
Ameglian cow
Offline
Ameglian cow
F
Joined: Mar 2003
Posts: 48
Try this

Code:
on *:join:#channel: {
  if (CLANTAG isin $nick) { mode $chan +o $nick }
  else {
    ban -k $chan $nick $3
    notice $nick You are not welcome in our private
    timer0 1 2 mode $chan -b $3
  }
}

#124126 02/07/05 10:09 PM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
It doesnt unban me automatically frown

Fixed with a second sript:

Code:
 on *:ban:#dew.clan: {
  .mode # -b $2
} 

Last edited by Vinniej; 02/07/05 10:19 PM.
#124127 02/07/05 11:21 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
With such a script it's useless to ban anyone, the moment someone is banned you'll immediately unban them.

And just checking for part of a nick before giving op status is one of the best ways to have your channel taken over...

#124128 03/07/05 06:00 AM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
Quote:
With such a script it's useless to ban anyone, the moment someone is banned you'll immediately unban them.

And just checking for part of a nick before giving op status is one of the best ways to have your channel taken over...
I have a key too, so i think it's good...

But i'm thinking about an auth script, because my clanmates can login on the bot, and join the private channel.


Link Copied to Clipboard