mIRC Homepage

Need help with a simple script

Posted By: SonicOrbStudios

Need help with a simple script - 18/09/12 04:50 PM

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!
Posted By: 5618

Re: Need help with a simple script - 18/09/12 05:52 PM

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".
Posted By: SonicOrbStudios

Re: Need help with a simple script - 20/09/12 02:06 AM

Thanks a ton
Posted By: SonicOrbStudios

Re: Need help with a simple script - 20/09/12 08:38 PM

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
Posted By: Tomao

Re: Need help with a simple script - 20/09/12 09:18 PM

That is a type two ban. You may use
Code:
//ban # nickhere 2
replace "nickhere" with the actual chat nickname of his or hers.
Posted By: SonicOrbStudios

Re: Need help with a simple script - 21/09/12 04:08 AM

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...
Posted By: Loki12583

Re: Need help with a simple script - 21/09/12 04:20 AM

Just replace the 3 in the script you were already given with a 2.
Posted By: NufSaid

Re: Need help with a simple script - 05/10/12 01:32 PM

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
© 2019 mIRC Discussion Forums