|
|
|
Stefan76
|
Stefan76
|
Hello !
I need a little help for scripting the new Banmodes for Unreal-Servers. I want to ban in a channel like: /mode +b ~q:*!*@hostmask.
Is there a way to add this to the nickname list in mirc like: .banQ:/ban # $$1 thebanwithqhere
Thanks for any replies!
|
|
|
|
FiLiUsEvAe
|
FiLiUsEvAe
|
I believe it's like this
ban user { mask <hostmask>; reason <reason-for-ban>; };
Example ban user { mask *nick@*.ip.isnick.com; reason "banned"; };
|
|
|
|
Joined: Dec 2002
Posts: 2,958
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,958 |
BanQ:ban # ~q $+ $chr(58) $+ $$1 2
What exactly are all those extra letters supposed to do anyway?
|
|
|
|
Stefan76
|
Stefan76
|
The new Channelbans i mean look likes this: ~q:*!*@host ~n:*!*@host ~r:*!*@host ~c:*!*@host The normal bans in mirc looks: /ban $$1 2 where 2 is the Banmaskversion *!*@hostmask.com,and I need the Banmask looking likes---> ~q:*!*@hostmask.com I only need to add the "~q:" at the beginning of the banmask
Last edited by Stefan76; 04/08/04 10:58 PM.
|
|
|
|
Joined: Dec 2003
Posts: 259
Fjord artisan
|
Fjord artisan
Joined: Dec 2003
Posts: 259 |
Hi, there! Ban on IRC servers (not mIRC) looks like nick!ident@ip_address. So... I don't understant what are you trying to do with those extra letters...  You can use /mode #channel +b banmask, but you can't change the way how ban looks on IRC server.
Last edited by milosh; 05/08/04 01:35 AM.
|
|
|
|
Stefan76
|
Stefan76
|
These bans are used by the new Unreal-IRCD 3.2.1 and yery helpful.....i only want to know how to add the ~q: before the banmask when i want to add it in mirc like the normal klickbutton for baning a user
|
|
|
|
Iori
|
Iori
|
On unreal IRCd, they are extensions to the ban types. - ~q = quiet (~q:<banmask>)
Users matching these bans are unable to speak, unless +v or greater. - ~n = nickchange (~n:<banmask>)
Users matching these bans can't change nicks, unless +v or greater. - ~c = channel (~c:#badchannel)
Users in <channel> are unable to join. - ~r = realname (~r:*loser*)
Users with real names matching this are unable to join.
|
|
|
|
Joined: Dec 2002
Posts: 1,893
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,893 |
.banQ: mode # +b ~q: $+ $address($1, [color:blue]2)[/color] 2 is the mask type (in this case, *!*@host). See /help $mask for a complete list. Note that $address() is IAL-dependant ( /help IAL), which means it will fail if mIRC doesn't already know the full address of $1. You can use Iori's code to update the IAL as soon as you join a channel.
|
|
|
|
Joined: Dec 2002
Posts: 3,015
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,015 |
To my knowledge you can't specify a nickname to the /ban command and have it ban with the new UnrealIRCd ban types. You can use $+(~q:,$address($$1,[color:green]mask#))[/color] instead of a nickname, but the user will have to be in your IAL as the /ban command won't do a /userhost lookup when a ban mask is given rather than a nickname. You could write your own /ban command to handle bantypes with the /userhost lookup, but this is probably...surplus to requirements. Edit: Online beat me :tongue: For those that don't know about them, you can read about UnrealIrcd's ban types here.
|
|
|
|
Iori
|
Iori
|
Adding the other types:  Ban ~q:mode # +b $+(~q:,$address($1, 2)) Ban ~n:mode # +b $+(~n:,$address($1, 2)) Ban ~c:mode # +b ~c: #badchannelBan ~r:mode # +b ~r: *aol*loser*Change 2 to your chosen mask type, see /help $mask for type #s. Change the red parts to suit.
|
|
|
|
Joined: Dec 2003
Posts: 259
Fjord artisan
|
Fjord artisan
Joined: Dec 2003
Posts: 259 |
Sorry, I didn't know for that kind of bans... it's becouse they are new.
|
|
|
|
Stefan76
|
Stefan76
|
Great work,many thanks,but there is still one Problem: I added this to teh Popups Nicklist: .banQ: mode # +b $+(~q:,$address($1,2)) but mirc only bans ~q:*!*@* It does not ban like ~q:*!*@*userhost.com.
Where is my mistake ??
|
|
|
|
Iori
|
Iori
|
Quoting Online: Note that $address() is IAL-dependant (/help IAL), which means it will fail if mIRC doesn't already know the full address of $1.
You can use Iori's code to update the IAL as soon as you join a channel.
|
|
|
|
Stefan76
|
Stefan76
|
Yeah, thanks for helping,it's working now fine!!!!!
|
|
|
|
|
|
|
|