mIRC Home    About    Download    Register    News    Help

Print Thread
#30598 18/06/03 11:25 AM
Joined: Dec 2002
Posts: 18
G
Gwion Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Dec 2002
Posts: 18
Hi,

I have a little problem.

I want to keep an user out of a channel.
Normally I would set the access level to -100 with chanserv but the user has no registerred nick. He uses the same one all the time though. Chanserv declares access levels can only be set for registerred nicks.
Next I have been thinking about an on join script which would look like this:

on *:JOIN:#channel: {
if ($nick == usernick) mode #channel +b usernick *!*@theip
if ($nick == usernick) kick #channel usernick Message
}

Now this does not work if the user joins as guest via a webchat and change the name only after joining.

Is it possible to set access levels only by using the ip? Haven't seen such an option in the chanserv help.
Or how else could I handle this?

Thanks,
Gwion

#30599 18/06/03 01:12 PM
Joined: Apr 2003
Posts: 6
C
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
C
Joined: Apr 2003
Posts: 6
try on nick

Code:
on 1:NICK: {
if ($nick == usernick) mode #channel +b usernick *!*@theip | kick #channel usernick Message
}


i haven't tested out the code. Try it.

Coca-Bear

Last edited by CocaBear; 18/06/03 01:13 PM.
#30600 18/06/03 02:11 PM
Joined: Jan 2003
Posts: 108
H
Vogon poet
Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
why not just ban him... /mode #chan +b $address($nick,4) should do the trick

#30601 18/06/03 02:23 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
menu channel {
  Ban Userlist
  .Add: { guser 666 $$?="Add who?" 8 }
  .Rem: { ruser $$?="Remove? who?" }
}

on *:JOIN:#: {
  if (666 isin $level($address($nick,8))) && ($me isop $chan) {
    ban $chan $nick 3
    kick $chan $nick Message.
  }
}

#30602 18/06/03 04:51 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
If you want to kick out on a nickchange you have to use $newnick.
Code:
ON *:NICK: {
  if ($newnick == LamersNick) {
    ban #Channelname $newnick 2
    kick #Channelname $newnick Banned: You are not welcome in here
  }
}
Make sure this is not in the same file as another ON NICK event.

#30603 18/06/03 04:54 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
In contrast to WatchDog's post, you might want to use the isop operator. smile

#30604 18/06/03 07:40 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Why not mode $chan +R? That would allow only registered nicks (atleast on my network) to join. Also, ban address 11 on the user. That seems to be the best address to use if they want to try to change nicks and real names, but will still match the mask. >:D


-KingTomato
#30605 19/06/03 02:08 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
To me that would be a last resort as you would be banning all newcomers.

#30606 19/06/03 02:46 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
And to me thats a way of increasing security. Most ppl that start things in channels or mess with ops use a non-registered name. If they frequent the server, the ought to have a username registered anyways.


-KingTomato

Link Copied to Clipboard