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.

Question about identifying

Old posts that have not been replied to for several years.
Locked
p
paco

Question about identifying

Post by paco »

In init-server I have this:

Code: Select all

proc evnt:init_server {type} {
  putmsg nickserv "identify password"
  global botnick
  putquick "MODE $botnick +i-ws"
}
On connecting nickserv notices:

[07:05] -NickServ (services@services.ircworld.org)- This nickname is registered and protected. If it is your
[07:05] -NickServ (services@services.ircworld.org)- nick, type /msg NickServ IDENTIFY password. Otherwise,
[07:05] -NickServ (services@services.ircworld.org)- please choose a different nick.

Bot joins a channel:

[07:05] Bot joined #channel.

..and a few seconds later it identifies with nickserv:

[07:06] -NickServ (services@services.ircworld.org)- Password accepted - you are now recognized.

..and Bot gets no OP on chan, because it wasn't identified when it joined the channel. Why doesn't bot identify itself when it connects to server? Do I have to change anything in init-server script?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It sounds like the putmsg command uses the help queue.

This queue has the least priority, and doesn't start sending data untill all other queues are empty. In this case, the JOIN commands go out first.

I sugest switching to putquick or putserv.
p
paco

Post by paco »

You were right, I changed it to putquick and it worked, thanks.
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

same problem for me. ive got following script, but eggdrop _always_ joins the channels before he gets identified. although he sends the pass before joining, nickserv recognises it after joining.

Code: Select all

# Identify.tcl
# Identify script for euIRC

set ns(pwd) "pass"

bind notc - "This nickname is registered and protected*" do:login 

proc do:login {nick uhost hand chan text} { 
  if {[string tolower $nick] != "nickserv"} { 
    return 
  } 
  putquick "PRIVMSG NickServ :identify $::ns(pwd)" 
  putlog "Identified."
}

putlog "Identify loaded"
[00:31] Connected to irc.euirc.net
[00:31] -NOTICE- *** If you are having problems connecting due to ping timeouts, please type /notice 47642C56 nospoof now.
[00:31] (irc.euirc.net claims to be irc.vie.at.euirc.net; updating server list)
[00:32] -Global (services@euirc.net)- [Logon News - Aug 31 2000] Welcome to the European Irc Network > euIRC < Have Fun using our Service - Your euIRC Team
[00:32] -Global (services@euirc.net)- [Logon News - Jun 15 2002] You can find our discussion board at: http://board.euirc.net
[00:32] -Global (services@euirc.net)- [Logon News - Jan 02 2003] New Service: If you want to hear Live Radio Streams while chatting then JOIN #EUIRC.RADIO - http://radio.euirc.net
[00:32] Identified.
[00:32] -NickServ (services@euirc.net)- This nickname is registered and protected. If it is your
[00:32] -NickServ (services@euirc.net)- nick, type /msg NickServ IDENTIFY password. Otherwise,
[00:32] -NickServ (services@euirc.net)- please choose a different nick.
[00:32] -NickServ (services@euirc.net)- If you do not change within one minute, I will change your nick.
[00:32] Prophecy joined #k13.
[00:32] Prophecy joined #Prophecy.
[00:32] -NickServ (services@euirc.net)- Password accepted - you are now recognized.
any idea?
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The code you've pasted seems to be corect. As far I can see this is just an problem with the connection betwen you and the irc server he sits on. Try connect it on an different server if one available. You may also make it set to all the chanels +inactive and after he get's logged in to NickServ join them (set them back to -inactive). Also another sugestion is to add NickServ as an friend to the bot and replace:

Code: Select all

bind notc - "This nickname is registered and protected*" do:login
to this:

Code: Select all

bind notc f "This nickname is registered and protected*" do:login
and this way you can drop this lines:

Code: Select all

  if {[string tolower $nick] != "nickserv"} { 
    return 
  }
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Again, the putquick command uses a queue. Any messages before it in the queue are process first.

There are two ways around this.

1: Use the -next option to the putquick command

Code: Select all

putquick "PRIVMSG NickServ :identify $::ns(pwd)" -next
2: Force the command out, bypassing all queues.

Code: Select all

set msg "PRIVMSG NickServ :identify $::ns(pwd)\n"
putdccraw 0 [string length $msg] ${msg
Locked