This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

setting a variable to people's Q account name

Old posts that have not been replied to for several years.
Locked
s
shanks
Voice
Posts: 19
Joined: Mon Aug 18, 2003 7:03 am

setting a variable to people's Q account name

Post by shanks »

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
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

Post by Aron »

You might want to read this thread

One way to do it would be to get your bot to recognize them as soon as they set mode +x.

Code: Select all

if {[string match "*.users.quakenet.org" $host]} { blablabla }
...or something like that.
The best way to start learning is to start helping.
Locked