mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
Return ISUPPORT(005) numerics on "VERSION"
This is how ircd-seven, Charybdis, Hybrid, and InspIRCd behave, for example.
This commit is contained in:
parent
14a84dfca5
commit
2e168c7809
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* ngIRCd -- The Next Generation IRC Daemon
|
* ngIRCd -- The Next Generation IRC Daemon
|
||||||
* Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
|
* Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -1106,10 +1106,19 @@ IRC_VERSION( CLIENT *Client, REQUEST *Req )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* send version information */
|
/* send version information */
|
||||||
return IRC_WriteStrClient(Client, RPL_VERSION_MSG, Client_ID(prefix),
|
if (!IRC_WriteStrClient(Client, RPL_VERSION_MSG, Client_ID(prefix),
|
||||||
PACKAGE_NAME, PACKAGE_VERSION,
|
PACKAGE_NAME, PACKAGE_VERSION,
|
||||||
NGIRCd_DebugLevel, Conf_ServerName,
|
NGIRCd_DebugLevel, Conf_ServerName,
|
||||||
NGIRCd_VersionAddition);
|
NGIRCd_VersionAddition))
|
||||||
|
return DISCONNECTED;
|
||||||
|
|
||||||
|
#ifndef STRICT_RFC
|
||||||
|
/* send RPL_ISUPPORT(005) numerics */
|
||||||
|
if (!IRC_Send_ISUPPORT(Client))
|
||||||
|
return DISCONNECTED;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return CONNECTED;
|
||||||
} /* IRC_VERSION */
|
} /* IRC_VERSION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user