mIRC Home    About    Download    Register    News    Help

Print Thread
#193941 27/01/08 04:07 PM
Joined: Dec 2007
Posts: 61
P
PO3 Offline OP
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2007
Posts: 61
anyone have a banlist code that add bans to txt or user when type !ban in a room ?
Please Thanks :P:)

PO3 #193951 27/01/08 05:31 PM
Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Originally Posted By: PO3
anyone have a banlist code that add bans to txt


Bans should go to channels, not to a .txt file.

Originally Posted By: PO3
or user when type !ban in a room ?
Please Thanks :P:)


And what should be added to .txt when 1 types !ban and nothing else..?

-Neal.

LostShadow #193960 27/01/08 06:01 PM
Joined: Dec 2007
Posts: 61
P
PO3 Offline OP
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2007
Posts: 61
ok you type !ban 1223445@gate it add gate to txt and kick then when ever that person joins it kicks them back off

Last edited by PO3; 27/01/08 06:02 PM.
PO3 #193970 27/01/08 07:04 PM
Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Originally Posted By: PO3
ok you type !ban 1223445@gate it add gate to txt


Code:
on *:input:#: {
  if (/* !iswm $1) {
    if ($1 == !ban) && ($2) {
      /write bans.txt $gettok($2,2,64)
    }
  }
}


Originally Posted By: PO3
and kick


Unfortunately, you'll have to write an on ban event to while loop who the ban affects then kick.

Originally Posted By: PO3
then when ever that person joins it kicks them back off


Which will be an on join event revenge script which some of us purposely choose to not help.

Best of luck with that.

-Neal.

LostShadow #193976 27/01/08 08:18 PM
Joined: Aug 2006
Posts: 19
R
Pikka bird
Offline
Pikka bird
R
Joined: Aug 2006
Posts: 19
ok this should help some
Code:
 alias !ban { write ban.txt $$1 $$2- | kick $$1 $$2- }

please do not use this script for malicious purposes. i dont like ppl using my scripts to do bad things so just dont abuse this script thank you.

Reaper
(Stephen Killgore)


ReaperIRC
Killgore Computers
Reaper #194006 28/01/08 01:12 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I think the OP's looking for a way to type it as !ban, not /!ban. on INPUT would be best.

To the OP, what you're looking for is a what's called a Shitlist script. If you check a site such as http://www.mircscripts.org/ you will find some already made.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard