#include "spamserv.h"
#include "shun.h"
#include "timeq.h"
+#include "version.h"
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
log_module(MAIN_LOG, LOG_ERROR, "Could not find VERSION origin user %s", origin);
return 0;
}
- irc_numeric(user, 351, "%s %s %s", PACKAGE_TARNAME, PACKAGE_VERSION, self->name);
+ irc_numeric(user, 351, "%s %s+[%s] %s", PACKAGE_TARNAME, PACKAGE_VERSION, cvs_version, self->name);
return 1;
}
if (data)
style = atoi(data);
- if ((style == 1) && user->handle_info && hidden_host_suffix && !(options & GENMASK_NO_HIDING)) {
+ if (((style == 1) || (style == 3)) && user->handle_info && hidden_host_suffix && !(options & GENMASK_NO_HIDING)) {
hostname = alloca(strlen(user->handle_info->handle) + strlen(hidden_host_suffix) + 2);
sprintf(hostname, "%s.%s", user->handle_info->handle, hidden_host_suffix);
- } else if ((style == 2) && !(options & GENMASK_NO_HIDING)) {
+ } else if (((style == 2) || (style == 3)) && !(options & GENMASK_NO_HIDING)) {
hostname = alloca(strlen(user->crypthost));
sprintf(hostname, "%s", user->crypthost);
}