mIRC Home    About    Download    Register    News    Help

Print Thread
voice/devoice #149271 15/05/06 09:57 PM
Joined: Oct 2005
Posts: 54
B
bojak71730 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
Code:
   on *:TEXT:!op*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +o $2
}

on *:TEXT:!halfop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +h $2
}
on *:TEXT:!dehalfop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan -h $2
}
on *:TEXT:!deop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan -o $2
}
on *:TEXT:!ban*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +b $2 $+ !*@*
}
on *:TEXT:!unban*:#:{
  if ($nick !isop $chan) { halt }
  mode $chan -b $2 $+ !*@*
}
on *:TEXT:!kick*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  kick $chan $2
}
on *:TEXT:!kickban*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +b $+ !*@*
  kick $chan $nick $2
}
on *:TEXT:!devoice*:#: { //mode $chan -v $2 }
}
on *:TEXT:!voice*:#: { //mode $chan +v $2 }
}
 


the voice and devoice command wont work i need help please

Last edited by bojak71730; 15/05/06 09:58 PM.
Re: voice/devoice #149272 15/05/06 10:21 PM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
Ok, first of all, Im wondering if you have the proper amount of { and } because the first line of the first script code is indented (however you say it works so I'll believe you). next:


on *:TEXT:!devoice*:#: { //mode $chan -v $2 }

}

on *:TEXT:!voice*:#: { //mode $chan +v $2 }

}


THose two extra brackets (unless there's more code there) are useless and will certainly make the ON VOICE not work. Try:

on *:TEXT:!devoice*:#: { //mode $chan -v $2 }
on *:TEXT:!voice*:#: { //mode $chan +v $2 }

See if those two work. If they dont, can I ask if you're opped at the time they try this?


Those who fail history are doomed to repeat it
Re: voice/devoice #149273 15/05/06 10:27 PM
Joined: Oct 2005
Posts: 54
B
bojak71730 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
Code:
on *:TEXT:!op*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +o $2
}

on *:TEXT:!halfop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +h $2
}
on *:TEXT:!dehalfop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan -h $2
}
on *:TEXT:!deop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
mode $chan -o $2
}
on *:TEXT:!ban*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +b $2 $+ !*@*
}
on *:TEXT:!unban*:#:{
  if ($nick !isop $chan) { halt }
  mode $chan -b $2 $+ !*@*
}
on *:TEXT:!kick*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  kick $chan $2
}
on *:TEXT:!kickban*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +b $+ !*@*
  kick $chan $nick $2
}
on *:TEXT:!devoice*:#: { //mode $chan -v $2 }
on *:TEXT:!voice*:#: { //mode $chan +v $2 }
}


still doesnt work and yes im opped

Re: voice/devoice #149274 15/05/06 10:43 PM
Joined: Oct 2005
Posts: 54
B
bojak71730 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
nvm i figured out the problem thanks alot

Re: voice/devoice #149275 16/05/06 12:41 AM
Joined: Dec 2002
Posts: 417
O
Othello Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
you may want to change your code to a ctcp or msg or notice script or some other kind of script becuase a script like that would make it so easy for others to access the same commands and take over a channel




Intelligence: It's better to ask a stupid question, then to prove it by not asking....