Im very new to TCL and this would be considered my 1st ever script. I need help in modifing it and tweaking as it's not working properly becuase it shows error with "elseif" and "else" if used instead of "elseif"
*optional*
What i would like more, is someone helping me out by telling me how to when using " !name" to automaticaly reappear in {putserv "PRIVMSG $chan :name is allias"}
Code: Select all
bind pub * !name announce
proc announce {nick uhost hand chan arg} {
if {$chan == "#YYYYY"} {putserv "PRIVMSG $chan :name is allias1"}
elseif {$chan == "#XXXX"} {putserv "PRIVMSG $chan :name is allias2 "}
}
Thanks for your suppor, if i was bit unclear dont blame me .. i dont know how to realy explain it all.
