Topic mask
Wednesday, June 02, 2004
Description: For that dude.
on *:TEXT:-set *:#channel: {
if ($2 == mask) { set %topic $3- | msg $chan Topic mask set. }
if ($2 == news) { set %news $3- | msg $chan News set. }
if ($2 == topic) { topic $chan $replace(%topic,&news,$3-) }
}
Wednesday, June 02, 2004 08:00pm PDT
looks good snang.
this is something i made a while ago for multiple topicmasks, as I found it annoying that chanserv doesn't allow such a thing. This should allow you to use multiple *'s in a topicmask, then specify different messages for each *
/me shrugs
Usage: !topic TOPIC ONE | TOPIC TWO
on @*:text:!topic *:#channelnamehere: {
; check to see nick is opped
if ($nick !isop $chan) return
; use the default topic below if no parameters given
if (!$2) tokenize 124 Default topic part one $chr(124) Default part two
;
var %i = 1, %topicmask = OMG TOPIC GOES HERE - NEWS: * MESSAGES: *
while ($gettok(%topicmask,%i,42)) {
var %topic = %topic $ifmatch $gettok($2-,%i,124)
inc %i
}
chanserv $chan topic %topic
}
Thursday, June 03, 2004 10:34am PDT
nice work snang but perhaps you might want to have options you can try para is really nice or this it also ok
on *:TEXT:-set topicmask *:#ichannel: { if ($address($nick,2) == *!*@nemisis91.user.gamesurge) { set %topicmask $3- | notice $nick The topicmask has been set to: %topicmask }
else { .notice $nick only nemisis can set this command thx }
}
on *:TEXT:-topic *:#ichannel: { topic $chan $replace(%topicmask, *, $2-) }
}
on *:JOIN:#ichannel:{ .notice $nick %topicmask } }
Thursday, June 03, 2004 10:35am PDT
just change the gaesurge ip to the ip to whoever is going to use this
Submit a comment
Oops! You need to
login or
register before you can post a comment!