All pastes #608188 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-08 03:27 UTC
rendered paste body
%bchans_enabled 1
%bchans #channel #somechan #lolhax

alias bchans {
  if (%bchans_enabled == 1) {
    %bchans_enabled = 0
    return
  }
  %bchans_enabled = 1
}

on *:INPUT:#: {
  if ($chan isin %bchans && $left($1,1) != $chr(47) && %bchans_enabled == 1) {
    %msg =  $+ $left($1,1) $+  $+ $right($1-,$calc($len($1-) - 1)) 
    say %msg
    halt
  }
}