- Code: Select all
if( $str.findfirst($3,~topic,)==0) {
%Totop = $str.replace($3,~topic,"")
eval topic $chan.name %Totop / %Tostat / %Toa / %Tob;
}
if( $str.findfirst($3,~status,)==0) {
%Tostat = $str.replace($3,~status,"")
eval topic $chan.name %Totop / %Tostat / %Toa / %Tob;
}
if( $str.findfirst($3,~statica,)==0) {
%Toa = $str.replace($3,~statica,"")
eval topic $chan.name %Totop / %Tostat / %Toa / %Tob;
}
if( $str.findfirst($3,~staticb,)==0) {
%Tob = $str.replace($3,~staticb,"")
eval topic $chan.name %Totop / %Tostat / %Toa / %Tob;
}
if ( $3 == "~clear") {
%Totop = "";
%Tostat = "";
%Toa = "";
%Tob = "";
}
To use this script, go into Events> OnChannelMessage> New Handler
Paste in the code, and you're set!
Questions? Comments? Come join us in #KVIrc!