All pastes #426433 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-06 03:54 UTC
rendered paste body
on *:TEXT:*:#Log1x:{

  if ($1 == %trigger $+ addop) {
    if ($ulevel >= 4) {
if ($2 == $null) {
msg $chan %left Addop %mid Incorrect syntax. %trigger $+ addop <nick> }
else {
  writeini auto.ini OP $address($2,2) 1 | mode # +o $2 } }

  if ($1 == %trigger $+ addvoice) {
    if ($ulevel >= 4) {
if ($2 == $null) {
msg $chan %left Addvoice %mid Incorrect syntax. %trigger $+ addvoice <nick> }
else {
writeini auto.ini VOICE $address($2,2) 1 | mode # +v $2 } } }

on *:JOIN:#Log1x:{

  if ($address($nick,2) isin $readini(auto.ini,OP,$address($nick,2)) { mode # +o $nick }

if ($address($nick,2) isin $readini(auto.ini,VOICE,$address($nick,2)) { mode # +v $nick } }