and if it's not oped? plz point me to the right doc about this info
This is what i get from tcl-commands.doc
botisop [channel]
Returns: 1 if the bot has ops on the specified channel (or any channel
if no channel is specified); 0 otherwise
Module: irc
but that dosent tell me anything on how to see if the bot is oped or not,
if [botisop $chan] {
trigger the script if the bot have op, and halt it if the bot dosent have op.. but i want to be able to send one line of text to the channel when the bot dosent have op, then halt the script, now it only halt if the bot dosent have ops.. :/ so what do i miss here?
this is what i have so far:
proc UnReal {nick uhost hand chan arg} {
set mess "[string tolower [lindex $arg 0]]"
set messa "[string tolower [lindex $arg 0]]"
if {[botisop $chan] == 0} {
puthelp "PRIVMSG $chan :$nick, message"
return 0
# working ok if bot is deoped
if [botisop $chan] {
# do the rest of the code dosent work, same with if i change it to if {[botisop $chan] == 1} still no luck ???