Public paste
Undefined
By: jo | Date: Dec 1 2006 22:37 | Format: None | Expires: never | Size: 375 B | Hits: 1386

  1. on *:TEXT:$($me $+ *):#:{
  2.   if ($readini(userlist.ini,$chan,$address($nick,2)) == owner) {
  3.     if ($2 == settopic) {
  4.       set %topic. $+ $chan $3-
  5.       topic $chan %topic. [ $+ [ $chan ] ]
  6.     }
  7.   }
  8. }
  9.  
  10. on *:TOPIC:#:{
  11.   if ($nick != $me) {
  12.     if ($topic == %topic. [ $+ [ $chan ] ]) {
  13. halt
  14. }
  15. else {
  16.       topic $chan %topic. [ $+ [ $chan ] ]
  17.     }
  18.   }
  19. }