All pastes #717882 Raw Edit

Modes - Wind

public text v1 · immutable
#717882 ·published 2007-09-27 23:00 UTC
rendered paste body
v {
  set %tags.format 04(<text>04)
  if ( $me ishop $chan || $me ishop $chan ) {
    mode $chan +vvvvvvvvvv $$1-
  }
  elseif (!$1) echo -ta Input required.
  elseif (!$chan) echo -ta You need to be on a channel to preform this action.
  else echo -ta You need operator in $tags($chan) to preform $tags(/v $1-) $+ .
}
h {
  set %tags.format 04(<text>04)
  if ( $me isop $chan ) {
    mode $chan +hhhhhhhhhh $$1- 
  }
  elseif (!$1) echo -ta Input required.
  elseif (!$chan) echo -ta You need to be on a channel to preform this action.
  else echo -ta You need operator in $tags($chan) to preform $tags(/h $1-) $+ .
}
o {
  set %tags.format 04(<text>04)
  if ( $me ishop $chan ) {
    mode $chan +oooooooooo $$1-
  }
  elseif (!$1) echo -ta Input required.
  elseif (!$chan) echo -ta You need to be on a channel to preform this action.
  else echo -ta You need operator in $tags($chan) to preform $tags(/o $1-) $+ .
}
dv {
  set %tags.format 04(<text>04)
  if ( $me ishop $chan || $me ishop $chan ) {
    mode $chan -vvvvvvvvvv $$1-
  }
  elseif (!$1) echo -ta Input required.
  elseif (!$chan) echo -ta You need to be on a channel to preform this action.
  else echo -ta You need operator in $tags($chan) to preform $tags(/dv $1-) $+ .
}
dh {
  set %tags.format 04(<text>04)
  if ( $me ishop $chan || $me isop $chan ) {
    mode $chan -hhhhhhhhhh $$1-
  }
  elseif (!$1) echo -ta Input required.
  elseif (!$chan) echo -ta You need to be on a channel to preform this action.
  else echo -ta You need operator in $tags($chan) to preform $tags(/dh $1-) $+ .
}
do {
  set %tags.format 04(<text>04)
  if ( $me isop $chan ) {
    mode $chan -oooooooooo $$1-
  }
  elseif (!$1) echo -ta Input required.
  elseif (!$chan) echo -ta You need to be on a channel to preform this action.
  else echo -ta You need operator in $tags($chan) to preform $tags(/do $1-) $+ .
}
tags {
  var %s = $replace(%tags.format,<text>, $+ $1-)
  if ($xchan($active)) { return $strip(%s) }
  else { return %s }
}
xchan { if (c isincs $gettok($chan($1).mode,1,32)) { return 1 } }