m_version: display charybdis version in /version

Otherwise it just crashes when /version is used.

Closes: #60
This commit is contained in:
Mantas Mikulėnas 2014-05-06 16:21:00 +03:00
parent bf77c3a1ef
commit 0f4ed4058d

View file

@ -76,6 +76,9 @@ m_version(struct Client *client_p, struct Client *source_p, int parc, const char
sendto_one_numeric(source_p, RPL_VERSION, form_str(RPL_VERSION), sendto_one_numeric(source_p, RPL_VERSION, form_str(RPL_VERSION),
ircd_version, serno, ircd_version, serno,
#ifdef CUSTOM_BRANDING
PACKAGE_NAME " " PACKAGE_VERSION,
#endif
me.name, confopts(source_p), TS_CURRENT, me.name, confopts(source_p), TS_CURRENT,
ServerInfo.sid); ServerInfo.sid);