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.

NickServ AUTH <number>

Old posts that have not been replied to for several years.
Locked
s
soul
Voice
Posts: 31
Joined: Fri Apr 25, 2003 6:25 pm
Location: Portugal

NickServ AUTH <number>

Post by soul »

- script

bind notc - * nickserv:identify
proc nickserv:identify {nick uhost hand text {dest ""}} {
global botnick; if {$dest == ""} {set dest $botnick}
if {$dest == $botnick && [string tolower $nick] == "nickserv" && [string tolower $uhost] == "suporte@ptnet.org"} {

if {([lindex $text 0] != "STATUS" || [lindex $text 2]) != 3 && ([validuser [lindex $text 1]])} { putserv "privmsg SOUL :OK" }
}
}

-- script

if {([lindex $text 0] != "STATUS" || [lindex $text 2]) != 3 && ([validuser [lindex $text 1]])} { putserv "privmsg SOUL :OK" }

how can i change this part of the script, so the bot can do someting if the reply notice after executing the comand : /NickServ STATUS is = 3 and do otherthing if NickServ STATUS is != 3

i'll apreciate your help.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Only need for ONE post!
Just remove [lindex $text 2]) != 3 and in the if add a new if to check if it's 3 or not
Elen sila lúmenn' omentielvo
s
soul
Voice
Posts: 31
Joined: Fri Apr 25, 2003 6:25 pm
Location: Portugal

Post by soul »

changed in to this:

if {([lindex $text 0] == "STATUS" || [lindex $text 2] == 3)} { putserv "privmsg SOUL :nick identificado" }

if NickServ STATUS answer is 3 , proc the privmsg, but isnt working :-?

can you make the changes for me? i dont know how lindex function works

thanks,
soul
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Please avoid hiting the "Submit" button to many times in the future..
Once the game is over, the king and the pawn go back in the same box.
s
soul
Voice
Posts: 31
Joined: Fri Apr 25, 2003 6:25 pm
Location: Portugal

Post by soul »

changed in to this:

if {([lindex $text 0] == "STATUS" || [lindex $text 2] == 3)} { putserv "privmsg SOUL :nick identificado" }

if NickServ STATUS answer is 3 , proc the privmsg, but isnt working :-?

can you make the changes for me? i dont know how lindex function works

thanks,
soul
Locked