I have another odd question, I made this script but what i was wondering was if it could pick up lines during the proc. The script i made is here :
Code: Select all
bind pub o|o !addop pub:addop:q
proc pub:addop:q {nick uhost hand chan text} {
if {[string length $text] > 0} { set tnick [lindex $text 0] }
if {[onchan "Q" $chan]} {
putquick "NOTICE $nick :Note: I need atleast the +aom(n) flags for this command to work."
putquick "PRIVMSG Q :chanlev $chan $text"
putquick "NOTICE $nick :Done."
putquick "MODE $chan +o $tnick"
putquick "NOTICE $tnick :$text is/are your new flag(s) in Q."
} elseif {[onchan "L" $chan]} {
putquick "NOTICE $nick :Note: I need atleast the +aom(n) flags for this command to work."
putquick "PRIVMSG L :chanlev $chan $text"
putquick "NOTICE $nick :Done."
putquick "MODE $chan +o $tnick"
putquick "NOTICE $tnick :$text is/are your new flag(s) in L"
}
}
bind pub o|o !rop pub:rop:q
proc pub:rop:q {nick uhost hand chan text} {
if {[string length $text] > 0} { set tnick [lindex $text 0] }
if {[onchan "Q" $chan]} {
putquick "NOTICE $nick :Note: I need atleast the +aom(n) flags for this command to work."
putquick "PRIVMSG Q :chanlev $chan $text"
putquick "NOTICE $nick :Done."
putquick "MODE $chan -o $tnick"
putquick "NOTICE $tnick :You have been removed from Q by $nick."
} elseif {[onchan "L" $chan]} {
putquick "NOTICE $nick :Note: I need atleast the +aom(n) flags for this command to work."
putquick "PRIVMSG L :chanlev $chan $text"
putquick "NOTICE $nick :Done."
putquick "MODE $chan -o $tnick"
putquick "NOTICE $tnick :You have been removed from L by $nick."
}
}
putlog "add Q\L flags script by \002MeTroiD\002 loaded."
What I would like it to pick up is, if this command is used but the bot has no access in the service bot Q/L which tells you "You are not known or banned on this channel and can't dump the userlist!" And L tells you "Sorry, you do not have permission to view/change user flags on <channel>"
If you don't have access, What i was wondering is if it possible for the bot to look for these commands when either one of these commands are used. Cos if it detects one of the lines it should say in the channel that he has no access to the service bot on that channel. But i have no clue how or if its possible for the bot to look for either one of these lines.
-Edit : The script works fine btw, i was just wondering if it was possible
