KVIrc Topic Script

Moderator: GeekShed.Net Staff

KVIrc Topic Script

Postby Timr » Thu Mar 10, 2011 7:24 pm

This script is based on the mIRC topic script, but with added ~clear functionality. Which clears all fo the topic variables. Thanks to Karsten for some help with this one.

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!
User avatar
Timr
 
Posts: 18
Joined: Sun Nov 14, 2010 6:40 am

Return to Script help

Who is online

Users browsing this forum: No registered users and 3 guests

cron