mIRC Home    About    Download    Register    News    Help

Print Thread
Need help with a simple script #239038 18/09/12 04:50 PM
Joined: Sep 2012
Posts: 7
S
SonicOrbStudios Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2012
Posts: 7
I'm not an advanced user of IRC but am running mIRC and would love to add a feature similar to the kick command of "/k <username> <reason>" however I would like to perform a "Regular Ban" with this command line.

Regular ban being: /ban #channel *!*ident@*.whatever.net

Can anyone walk me through how to set this up?

Thanks!

Re: Need help with a simple script [Re: SonicOrbStudios] #239039 18/09/12 05:52 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
You can create a new alias in Alt+R > Aliases by adding this code in the Aliases tab.
Code:
/b /ban -k # $$1 3 $2-

This will ban and kick the user via: /b <nick> [reason]
Nick is required, reason is optional.

See /help $mask if you want another ban mask than "3".

Re: Need help with a simple script [Re: 5618] #239047 20/09/12 02:06 AM
Joined: Sep 2012
Posts: 7
S
SonicOrbStudios Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2012
Posts: 7
Thanks a ton

Re: Need help with a simple script [Re: SonicOrbStudios] #239066 20/09/12 08:38 PM
Joined: Sep 2012
Posts: 7
S
SonicOrbStudios Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2012
Posts: 7
Slight issue....

Seems the new command is not filtering 100%...but I'm not sure why.

usually I do a manual enter of
Code:
/mode #channel +b @ChatAbout-59E2F083.dynamic.dsl.as9105.com


Any correction on this?
Probably provided a wrong ban type when I stated a #3 "standard ban" before... Not sure how to correct this on my own being I don't know enough about scripting. Sorry for the mistake on my end.


Right now I'm entering the command and for banning
4f91a799@ChatAbout-767A0AB2.mibbit.com

I'm seeing a return of
+b *!*4f91a799@*.mibbit.com

I'd like to see a return of
+b *!*@ChatAbout-767A0AB2.mibbit.com

Last edited by SonicOrbStudios; 20/09/12 08:41 PM.
Re: Need help with a simple script [Re: SonicOrbStudios] #239068 20/09/12 09:18 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
That is a type two ban. You may use
Code:
//ban # nickhere 2
replace "nickhere" with the actual chat nickname of his or hers.

Re: Need help with a simple script [Re: Tomao] #239083 21/09/12 04:08 AM
Joined: Sep 2012
Posts: 7
S
SonicOrbStudios Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2012
Posts: 7
Originally Posted By: Tomao
That is a type two ban. You may use
Code:
//ban # nickhere 2
replace "nickhere" with the actual chat nickname of his or hers.



Almost, but I want to use /b <nick> to trigger, not have to type all that in each time...

Last edited by SonicOrbStudios; 21/09/12 04:08 AM.
Re: Need help with a simple script [Re: SonicOrbStudios] #239084 21/09/12 04:20 AM
Joined: Jan 2004
Posts: 1,276
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,276
Just replace the 3 in the script you were already given with a 2.

Re: Need help with a simple script [Re: SonicOrbStudios] #239260 05/10/12 01:32 PM
Joined: Dec 2010
Posts: 23
N
NufSaid Offline
Ameglian cow
Offline
Ameglian cow
N
Joined: Dec 2010
Posts: 23
an example that will work is
/ban -ku60 #channelhere nickhere You have been ban for 1 minute
that is a ban for 1 minute
remember you have to kick the ban
or you can use wildcard like
/ban -ku60 # nickhere You have been ban for 1 minute
i can write you a complete ban script if ya like
for different times or permate ban
you can reach me on irc.star-fleet.net channel--> #tmd nick--> Ace i do all there script

Last edited by NufSaid; 05/10/12 01:40 PM.