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.

Q auth + setting mode +x

Old posts that have not been replied to for several years.
Locked
m
maxx0r

Q auth + setting mode +x

Post by maxx0r »

Hi, i got a q auth script but i wonder if it is some way to use the "/mode <nick> +x so u get the host like this "auth@auth.users.quakenet.org" ?

:D
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Use this:
bind evnt - init-server my:connect
proc my:connect init-server {
putquick "PRIVMSG Q@CServe.quakenet.org :AUTH <username> <password>"
putquick "MODE $::botnick +x"
}
Where is username pur your bot username, and where is pass put your bot password :)
m
maxx0r

Post by maxx0r »

ah, thx ]Kami[
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

No Problem :mrgreen:
User avatar
bruhv
Voice
Posts: 22
Joined: Sat Apr 10, 2004 5:53 pm

Post by bruhv »

as usual i did a search but came up with nothing
just want to add to this script... i added a public command to auth the bot when quakenet services go down and then come back, but i want it to check if it's already auth'd... ie check if it has a hostmask that matches ...@botnick.users.quakenet.org

so far i got this

Code: Select all

if {$bothost == "...@botnick.users.quakenet.org"} {
putquick "PRIVMSG $chan :\00310i am already auth'd with Q\003"}
obviously {$bothost == "...@ etc is wrong.
i have been reading, and find:
getchanhost <nickname> [channel] - Returns: user@host of the specified nickname
not really sure how i use it

any clues?
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

if {![string match -nocase "*@*.users.quakenet.org" $::botname]} {
# do the auth or whatever..
}
Once the game is over, the king and the pawn go back in the same box.
User avatar
bruhv
Voice
Posts: 22
Joined: Sat Apr 10, 2004 5:53 pm

Post by bruhv »

cool, thanks caesar 8)
Locked