This is for a script for an eggdrop on quakenet!
for a user to use a public command, he has to pass a series of requirements:
proc pub:check { nick host hand chan text } {
# check if user is ops
if {![isop $nick $chan]} {
putserv "PRIVMSG $chan :Sorry $nick, you have to be Op'd to post messages!"
}
# check if Q or L is present
if {![onchan Q $chan]} {
if {![onchan L $chan]} { putserv "PRIVMSG $chan :Sorry $nick, you need Q or L in your channel!" }
}
# check user is auth'd with Q
}
# send info to hub bot (send qnick, nick, chan, message)
however, i'm not entirely sure how to find out what people's Q account name is, and how to then set it as a variable!
if any one could help with this, much appreciated.
thanks in advance