theme help - 21/03/13 11:18 AM
I made a theme engine for my script, but i got stuck on a problem, i cant get it to work as it should, it working as i want as long as i only join 1 channel, but if i do /join #one,#two it get f*ed up, the code looks like:
Hixxy sugested i should use the $numeric 332 instead of the one i using, but i still got a problem. if i join more then one channel the echo of who set the topic ends up in the wrong channel, $numeric 329 will be sent after 333 so thats why i using that to call the _join alias. Any ideas?
Code:
raw *:* { haltdef if ($numeric == 329) { set %:topic $chan($2).topic set %:chan $2 if (!%:topic) { set %:topic no topic found } _join } elseif ($numeric == 333) { set %:setby $gettok($1-,3,32) set %:time $asctime($gettok($1-,4,32)) } alias _join { echo %:chan $+($chr(91),%:chan,$chr(93),$chr(32),Topic,$chr(32),$chr(40),%:topic,$chr(41)) echo %:chan $+($chr(91),%:chan,$chr(93),$chr(32),Set,$chr(32),by,$chr(32),$chr(40),%:setby,$chr(41),$chr(32),At,$chr(32),$chr(40),%:time,$chr(41)) unset %:* }
Hixxy sugested i should use the $numeric 332 instead of the one i using, but i still got a problem. if i join more then one channel the echo of who set the topic ends up in the wrong channel, $numeric 329 will be sent after 333 so thats why i using that to call the _join alias. Any ideas?