A simple topic changer to changer your topic :P
Triggers:
!t = Start of the topic, then there will be a /
!status = Middle of the topic, then there will be a /
!static = End of topic
Change the triggers to fit your needs. I used !t because I have GeekShed in my channel, so it would just go it him
Need help? Email me: mail@mr09.co.cc
Or join my channel:
irc.GeekShed.net
on *:TEXT:*:#:{
if ( $nick isop $chan && $me isop $chan ) {
if ( $1 == !t ) { /topic $chan $2- / %status / %static | /set %topic $2- }
if ( $1 == !status) { /topic $chan %topic / $2- / %static | /set %status $2- }
if ( $1 == !static ) { /topic $chan %topic / %status / $2- | /set %static $2- }
}
}
This: > on :TEXT::#:{
if ( $nick isop $chan && $me isop $chan ) {You should make the || as && so mirc will make sure the client running the code is opped and the nick is an op. Using || will make either of them optional (even without being an op) You can also shorten the code a bit by using:
on @*:TEXT:*:#:{
if ($nick isop $chan) {
Which is the same as using $me isop $chan and $nick isop $chan
I don't get the whole business with those three !t, !status, and !static commands. They look rather redundant to me, as opposed to that of the use of variables.