All pastes #898391 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-02-10 08:39 UTC
rendered paste body
on *:TEXT:!setcounter*:#: { 
  set %count $+ $nick $2
  notice $nick 2your 4counter 2has been set to 4 %count [ $+ [ $nick ] ]
}

on *:TEXT:!counter*:#: { 
  //notice $nick 2your 4counter2 is 4 %count [ $+ [ $nick ] ]
}

on *:TEXT:!delcounter*:#: { 
  set %count [ $+ [ $nick ] ] 0
}

on *:TEXT:!ccounter*:#: { 
  if ($2 == +) { inc %count [ $+ [ $nick ] ] $$3 }
  if ($2 == -) { dec %count [ $+ [ $nick ] ] $$3 }
}