|
|
Joined: Dec 2002
Posts: 18
Pikka bird
|
OP
Pikka bird
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
|
|
|
|
Joined: Apr 2003
Posts: 6
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Apr 2003
Posts: 6 |
try on nick
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.
|
|
|
|
Joined: Jan 2003
Posts: 108
Vogon poet
|
Vogon poet
Joined: Jan 2003
Posts: 108 |
why not just ban him... /mode #chan +b $address($nick,4) should do the trick
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
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.
}
}
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
If you want to kick out on a nickchange you have to use $newnick. 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.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
In contrast to WatchDog's post, you might want to use the isop operator.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
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
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
To me that would be a last resort as you would be banning all newcomers.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
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
|
|
|
|
|
|