4
0

topic.tcl 408 B

12345678910111213141516171819
  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. proc set_topic { nick host hand chan arg } {
  9. if [isop $chan $nick] {
  10. putserv "TOPIC $chan :$arg"
  11. }
  12. }
  13. bind pub o|o !off set_topic_off
  14. bind pub o|o !on set_topic_on
  15. bind pub - !topic set_topic