mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2008
Posts: 23
P
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Sep 2008
Posts: 23
Hey Everyone,

I did some prior research on this looking for the answer.

I am trying to create a script for when I say +m the channed turns to Moderated.

All I could find about this was
Code:
/mode [#] +m


Also, I am not sure if anyone would know but the chat server I created a bot for (justin.tv) has a Friends Only Mode. I've seen other bots that can do the same purpose by turning Friends Only Mode on and in mIRC: * jtv sets mode: +f

Does anyone know about either of these?

Thanks

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
on *:INPUT:#:if ($regex($1,/^((?:\+)|(?:\-))(m)$)) mode # $+($regml(1),$regml(2))

The syntax is: +m

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Horstl slaps Tomao with a trailing / and
Code:
on *:input:#: if ($1- === +m) || ($1- === -m) mode $chan $v2
:P

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Code:
on *:input:#:mode # $$iif($istokcs(+m.-m,$1-,46),$1)

wink


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
This will work too:
Code:
$iif($instok(+ -,$1-,1,32),$1)

This will make it accept all the room modes.

Last edited by Tomao; 18/02/09 12:05 AM.

Link Copied to Clipboard