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.

problem with evnt init-server [bracet error solved]

Old posts that have not been replied to for several years.
Locked
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

problem with evnt init-server [bracet error solved]

Post by De Kus »

the old variant for the init server was documented to be restricted to 165 characters, afaik. The new model has no such documention, so asumed the restriction was killed. But somehow I cannot execute a bit of code it simply seems to ignore it.
This is what was initially tried:

Code: Select all

bind evnt - init-server handle:serverinit
proc handle:serverinit {type} {
	global nick botnick nickpass nickservmask
	set nickauthed 2
	if { $nick != $botnick } {
	  putquick "PRIVMSG nickserv :GHOST $nick $nickpass"
	  utimer 1 [subst "putquick \"NICK :$nick\""]
	  utimer 2 [subst "putquick \""$nickservmask :identify $nickpass\""]
	} else {
	  putquick "$nickservmask :identify $nickpass"
	}
	putlog "Chanservneed: $nick $nickpass"
}
I added the putlog to debug, if the bot actually goes so far, but nothing apeared in the logs...

okay, I tried something, I went to original init proc in the .conf file and added "handle:serverinit" while uncommenting the bind within the nickserv script. After the first run I noticed... hey you idiot... you forgot to add the required argument... but not even a TCL error has been logged for it. It completly ignores it. I pasted the init-server proc structure from the original eggdrop.conf along with eggdrop 1.7.0 CVS (the current one, not the one now named 1.9). This is how it looked when triing to call the 2nd proc:

Code: Select all

proc evnt:init_server {type} {
	global botnick
  putquick "MODE $botnick +Bxi-ws"
  handle:serverinit init_server
}
any ideas for workarounds to execute the above proc before entering the first channels?

Edit: topic
Last edited by De Kus on Wed Feb 02, 2005 7:41 am, edited 1 time in total.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
s
spyda
Halfop
Posts: 64
Joined: Mon Aug 12, 2002 2:22 am
Location: Australia

Post by spyda »

try a RAW bind

Code: Select all

bind RAW - 001 do:connection
001 = connection to IRCD

Hope that helps :)
asusNET Services Online in 2005
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

will this trigger when the TCP connection is established or after the challange of nick, email, ping etc.?

ah, i'll just try 002, this seems to be after the "login".
[12:08:05] <De_Kus> .tcl handle:serverinit muh die kuh
[12:08:05] <[-RO^Bot-]> Tcl error: extra characters after close-quote
WTF?! I can't see any bracet error... :(
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

found the stupid bracet error... the bot could have told me before ><.

but I have another strange thing now...

Code: Select all

	  putquick "PRIVMSG nickserv :GHOST $nick $nickpass"
	  utimer 1 [subst "putquick \"NICK :$nick\""]
	  utimer 2 [subst "putquick \"$nickservmask :identify $nickpass\""]
[12:30] [m->] PRIVMSG nickserv :GHOST [-RO^Bot-] ...
[12:30] [m->] PRIVMSG NickServ :identify ...
[12:30] [m->] MODE eggi_ReConnecting +Bxi-ws
NICK... where are you? *whine*
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Locked