;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;@@@ Modernized Topic Script @@@
;@@@ By James Briggs (Jim) @@@
;@@@ http://facebook.com/ijimmie @@@
;@@@ If you need help join @@@
;@@@ Server: irc.geekshed.net @@@
;@@@ Channel: #jim @@@
;@@@ To set the owner,channel and opschan @@@
;@@@ Please do /owner yournick @@@
;@@@ then /opschan #theopschan @@@
;@@@ main chan do: /setchan #yourchan @@@
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;start security
alias owner {
set %owner $1
}
alias opschan {
set %opschan $1
}
alias setchan {
set %chan $1
}
;end security
;start topic
ON :TEXT::%opschan: { if ( $nick isop $chan ) {
if ( $1 == !topic ) { set %topic $2- | msg %opschan Preview: Topic: %topic / %owner is %status / %static }
elseif ( $1 == !status ) { set %status $2- | msg %opschan Preview: Topic: %topic / %owner is %status / %static }
elseif ( $1 == !static ) { set %static $2- | msg %opschan Preview: Topic: %topic / %owner %verb %status / %static }
elseif ( $1 == !verb ) { set %verb $2- | msg %opschan Preview: Topic: %topic / %owner %verb %status / %static }
elseif ( $1 == !preview ) { msg %opschan Topic: %topic / %owner %verb %status / %static }
elseif ( $1 == !update ) { topic %chan Topic: %topic / %owner is %status / %static | msg %opschan Topic: %topic / %owner %verb %status / %static }
}
}
;end topic
Yes they should have posted it in the right section under snippets not scripts.
541 B is not considered a script.
Sorry Jenn but this is a Social network. If you post something here you are going to get feedback whether you want it or not. If he wanted to post it just for his friends to have an use then he should have used pastebin.
anyways with that being said keep up the learning Jimmie
and why didnt u put it on the code place? ._.
look, if it requires that the person needs to op on channel you could use this
ON @:TEXT:*:#:{
if ($chan == %opschan) { commands }
}
and wha about this...
alias owner {
set %owner $1
}
alias opschan {
set %opschan $1
}
alias setchan {
set %chan $1
}
why dont u use an alias to do it like
alias Stopic {
set %owner $1
set %opschan $2
set %chan $3
}
like
/STOPIC owner opschans chan