[IRCServices] Unreal with NICKCHARS support (from CVS)

Alex HangMan tty at inbox.ru
Thu Mar 3 22:44:44 PST 2005


Hello all

seem like Services does not start with new Unreal build, that support NICKCHARS feature.
here is services log:
-------
[Mar 04 10:58:09.431373 2005] debug: Sent: PROTOCTL SJOIN SJOIN2 SJ3 NICKv2 VHP VL NOQUIT UMODE2 TOKEN NICKIP
[Mar 04 10:58:09.433700 2005] debug: Sent: PASS :**********

... more sends, SERVER, NICK other ...

[Mar 04 10:58:09.458010 2005] debug: Received: :irc.nwg-nv.ru NOTICE AUTH :*** Looking up your hostname...
[Mar 04 10:58:09.460022 2005] debug: Received: :irc.nwg-nv.ru NOTICE AUTH :*** Found your hostname (cached)
[Mar 04 10:58:09.531932 2005] debug: Received: PROTOCTL NICKCHARS=
[Mar 04 10:58:09.540767 2005] debug: Sent: ERROR :Need NICKv2 protocol
[Mar 04 10:58:09.543939 2005] Remote server doesn't support NICKv2
-------

and code from Unreal sources (send_proto procedure, s_serv file):
-------
void send_proto(aClient *cptr, ConfigItem_link *aconf)
{
char buf[512];

	sendto_one(cptr, "PROTOCTL NICKCHARS=%s", langsinuse);

	sprintf(buf, "CHANMODES=%s%s,%s%s,%s%s,%s%s",
		CHPAR1, EXPAR1, CHPAR2, EXPAR2, CHPAR3, EXPAR3, CHPAR4, EXPAR4);
#ifdef ZIP_LINKS
	if (aconf->options & CONNECT_ZIP)
	{
		sendto_one(cptr, "PROTOCTL %s ZIP %s", PROTOCTL_SERVER, buf);
	} else {
#endif
		sendto_one(cptr, "PROTOCTL %s %s", PROTOCTL_SERVER, buf);
#ifdef ZIP_LINKS
	}
#endif
}
... more code ...
-------

Server always send first PROTOCTL NICKCHARS, therefor services crashed to start.

I just tested, moved NICKCHARS after "normal" PROTOCTL... and services doesn`t start again, it crashed on PROTOCTL NICKCHARS, because no NICKv2 in this PROTOCTL directive.


And one question: when Services will support other languages, russian for example. In current version Services are case sensitive with cyrillic chars.