mIRC Home    About    Download    Register    News    Help

Print Thread
#140012 21/01/06 05:44 AM
Joined: Feb 2005
Posts: 185
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
Code:
 on *:TOPIC:#: {
  if ($nick == $me) Halt {
    echo -a 11·09 · 4 $nick Changed The Topic In $chan
    kick $active $nick Don't Try To Change The TOPIC Only I Can Set It
  }
} 


I would like if it could put the topic back to what it was after kicking the offender.

Cheerz


sub-zero.homeip.net:6667

#140013 21/01/06 06:11 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
on *:TOPIC:#: {
  if ($nick == $me) { set $+(%,topic.of.,$chan) $chan($chan).topic }
  else {
    echo -a 11·09 · 4 $nick Changed The Topic In $chan
    kick $chan $nick Don't Try To Change The TOPIC Only I Can Set It
    topic $chan $($+(%,topic.of.,$chan),2)
  }
}


* using a pre event like ^*:topic well not work to get the old topic, as it has already been internally adjusted.
** replaced $active with $chan in the kick

#140014 21/01/06 07:20 AM
Joined: Feb 2005
Posts: 185
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
Ahh nice one mate!!!! grin wink


sub-zero.homeip.net:6667


Link Copied to Clipboard