mIRC Home    About    Download    Register    News    Help

Print Thread
#178765 14/06/07 12:42 PM
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
Hy,
i had made this code:
Code:
on *:JOIN:#: {
  mode # +tn
}

But is not enought. When i been come channel operator (@), i want my script to change the channel modes in +tn if it they not been selected.
And i don't know how to make this code. I had tryed:
Code:
on *:@:#: {
  mode # +tn 
}
but is not working .
Can you help me please. Thanks !


/server IRC.RomaniaIRC.ORG
Mlupu #178767 14/06/07 12:48 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
on *:JOIN:#: {
 if ($nick == $me) && (nt !isin $gettok($chan($chan).mode,1,32)) {  mode $chan +nt }
}

on *:OP:#: {
  if ($opnick == $me) && (nt !isin $gettok($chan($chan).mode,1,32)) { mode $chan +nt }
}


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Mlupu #178768 14/06/07 12:48 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:JOIN:#: {
  mode # +tn
}

I have no idea what that's supposed to be. smile

Also, I don't understand what you mean. When you join the channel, you want to change channel modes if they haven't been set already?

sparta #178773 14/06/07 01:36 PM
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
it work. Thanks wink


/server IRC.RomaniaIRC.ORG

Link Copied to Clipboard