mIRC Home    About    Download    Register    News    Help

Print Thread
#92804 04/08/04 09:02 PM
S
Stefan76
Stefan76
S
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!

#92805 04/08/04 09:20 PM
F
FiLiUsEvAe
FiLiUsEvAe
F
I believe it's like this

ban user {
mask <hostmask>;
reason <reason-for-ban>;
};

Example
ban user {
mask *nick@*.ip.isnick.com;
reason "banned";
};



#92806 04/08/04 09:22 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
BanQ:ban # ~q $+ $chr(58) $+ $$1 2

What exactly are all those extra letters supposed to do anyway?

#92807 04/08/04 09:32 PM
S
Stefan76
Stefan76
S
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.
#92808 05/08/04 01:31 AM
Joined: Dec 2003
Posts: 259
M
Fjord artisan
Offline
Fjord artisan
M
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... confused

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.
#92809 05/08/04 01:58 AM
S
Stefan76
Stefan76
S
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

#92810 05/08/04 02:13 AM
I
Iori
Iori
I
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.


#92811 05/08/04 02:19 AM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
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.

#92812 05/08/04 02:19 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
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.

#92813 05/08/04 02:28 AM
I
Iori
Iori
I
Adding the other types: smile

Ban ~q:mode # +b $+(~q:,$address($1,2))
Ban ~n:mode # +b $+(~n:,$address($1,2))
Ban ~c:mode # +b ~c:#badchannel
Ban ~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.

#92814 05/08/04 02:38 AM
Joined: Dec 2003
Posts: 259
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 259
Sorry, I didn't know for that kind of bans... it's becouse they are new.

#92815 05/08/04 02:45 AM
S
Stefan76
Stefan76
S
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
??

#92816 05/08/04 02:48 AM
I
Iori
Iori
I
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.

#92817 05/08/04 02:54 AM
S
Stefan76
Stefan76
S
Yeah, thanks for helping,it's working now fine!!!!!


Link Copied to Clipboard