topic.tcl 409 B

1234567891011121314151617181920
  1. # topic.tcl
  2. proc set_topic_off { nick host hand chan arg } {
  3. putserv "TOPIC $chan :Something is now offline"
  4. }
  5. proc set_topic_on { nick host hand chan arg } {
  6. putserv "TOPIC $chan :Something is now online"
  7. }
  8. bind pub o|o !off set_topic_off
  9. bind pub o|o !on set_topic_on
  10. bind pub - !topic set_topic
  11. proc set_topic { nick host hand chan arg } {
  12. if [isop $chan $nick] {
  13. putserv "TOPIC $chan :$arg"
  14. }
  15. }