Page 1 of 1

Event '376' (End of MOTD) not getting sent?

Posted: Sun Jun 08, 2008 3:22 pm
by misutowolf
Hi. I'm writing a Perl bot and testing it on my server (running UnrealIRCD 3.2.7 on Debian Lenny), and for some reason, the bot isn't getting the End of MOTD event from the server.

I've tested said script on another server and it seems to be working fine, so I was just wondering if there's something up with UnrealIRCD, or what.

Any assistance would be greatly appreciated.

Re: Event '376' (End of MOTD) not getting sent?

Posted: Sun Jun 08, 2008 3:35 pm
by misutowolf
Yeah...I feel quite stupid. Apparently I was under the assumption that Unreal had a default MOTD already there (ircd.motd), but it didn't.

I had no MOTD for the server to send, so OBVIOUSLY the event wasn't being sent/triggered. Now that I've written one, everything works great!

Re: Event '376' (End of MOTD) not getting sent?

Posted: Sun Jun 08, 2008 5:44 pm
by Jobe
As an idea, if you're using the end of MOTD numeric response as a signal that you're bot is fully connected, try using numeric 005 instead, as that is sent on nearly all if not all IRCd's ONLY after successful connection but regardless of MOTD state. Well 001 to 005 should be alright, but 005 to be sure.

Re: Event '376' (End of MOTD) not getting sent?

Posted: Sat Jun 14, 2008 4:35 am
by Stealth
Or look for the LUSERS numerics.