Code: Select all
if {[$change]!="+"} {
putserv "PRIVMSG $channel :\[\00304DJIA\017]\00303 --> $last $change\017 | $timestamp"
} else {
putserv "PRIVMSG $channel :\[\00304DJIA\017]\00304 --> $last $change\017 | $timestamp"
}
Code: Select all
if {[$change]!="+"} {
putserv "PRIVMSG $channel :\[\00304DJIA\017]\00303 --> $last $change\017 | $timestamp"
} else {
putserv "PRIVMSG $channel :\[\00304DJIA\017]\00304 --> $last $change\017 | $timestamp"
}
Code: Select all
if {[string first "+" $var] == 0]} {
putserv "PRIVMSG $channel :\[\00304DJIA\017]\00303 --> $last $change\017 | $timestamp"
} elseif {[string first "-" $var] == 0]} {
putserv "PRIVMSG $channel :\[\00304DJIA\017]\00304 --> $last $change\017 | $timestamp"
}
Code: Select all
set plus [string first "+" $change]
set minus [string first "-" $change]
if {$plus == !1} {
putserv "PRIVMSG $channel :\[\00312DJIA\017]\002 -->\017 \00303$last $change\017 | $timestamp"
} elseif {$minus == !1} {
putserv "PRIVMSG $channel :\[\00312DJIA\017]\002 --> \017\00304$last $change\017 | $timestamp"
} else {
putserv "PRIVMSG $channel :\[\00312DJIA\017]\002 --> $last \017 | $timestamp"
}
}