mIRC Home    About    Download    Register    News    Help

Print Thread
#183301 19/08/07 03:49 AM
Joined: Jan 2007
Posts: 31
J
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
I don't know how to do this, lol.
Iv been trying to make a input script to ban a channel. But nothing works.
for example.. when I type !banchan #Chan.. it would ban that channel... But i have no clue how to make ~c: work with it.
Code:
 elseif ($1 == !banchan) { /mode +b $chan ~c:$2 } 

^that wont work. I don't know how to add the ~c: in lol. And is there a way that I can just say.. !banchan Chan.. and it will automatically add the # sign in?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I don't use any networks with services that allow banning channels, but here's a possible method to do what you want. I can't test it and don't know if it's the correct format for that kind of ban.

Code:
  elseif ($1 == !banchan) { mode +b $chan ~c:# $+ $2 }


Note that /'s aren't needed in scripts. Also, you can't put something touching the $ in an identifier. To combine things, use $+.


Invision Support
#Invision on irc.irchighway.net
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Code:
  elseif ($1 == !banchan) { mode $chan +b ~c: $+ #$$2 }



Link Copied to Clipboard