mIRC Home    About    Download    Register    News    Help

Print Thread
#166195 07/12/06 03:47 PM
Joined: Oct 2006
Posts: 60
M
moshkin Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Oct 2006
Posts: 60
How do i get the bot only to voice, op or half op people with the actuall access, because randoms can just type !op and get it :s


Code:
on *^1:TEXT:!op:#: { mode $chan +o $nick } 
on *^1:TEXT:!deop:#: { mode $chan -o $nick } 
on *^1:TEXT:!dehalfop:#:{ /mode $chan -h $nick }
on *^1:TEXT:!voice:#:{ /mode $chan +v $nick }
on *^1:TEXT:!devoice:#:{ /mode $chan -v $nick }
on *^1:TEXT:!halfop*:#: {
  if !$2 {    mode $chan +h $nick  }
  elseif ($nick isop $chan) { .mode $chan +h $2 }
}
on *^1:TEXT:!dehalfop*:#: {
  if !$2 {    mode $chan -h $nick  }
  elseif ($nick isop $chan) { .mode $chan -h $2 }
}
on *^1:TEXT:!voice*:#: {
  if !$2 {    mode $chan +v $nick  }
  elseif $nick($chan.$nick.oh) { .mode $chan +v $2 }
}
on *^1:TEXT:!devoice*:#: {
  if !$2 {    mode $chan -v $nick  }
  elseif $nick($chan.$nick.oh) { .mode $chan -v $2 }
}  


Last edited by moshkin; 07/12/06 03:48 PM.
moshkin #166206 07/12/06 07:51 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Give them a userlevel and use on <level>:TEXT:...:#:{ ... }

moshkin #166291 08/12/06 08:35 PM
Joined: Aug 2006
Posts: 19
R
Pikka bird
Offline
Pikka bird
R
Joined: Aug 2006
Posts: 19
just change the access level for each command.


ReaperIRC
Killgore Computers
Reaper #166323 09/12/06 01:31 PM
Joined: Oct 2006
Posts: 60
M
moshkin Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Oct 2006
Posts: 60
how?

moshkin #166330 09/12/06 04:53 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
If you add them to the user list, you can just use:

Code:
on 100:text:trigger:#channel: { commands }


Change the 100 to something else if you want to use different levels.

/help levels

Last edited by Riamus2; 09/12/06 04:53 PM.

Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard