From: Michael Poole Date: Thu, 24 Apr 2008 11:33:35 +0000 (-0400) Subject: src/proto-p10.c: Allow his_server{name,comment} to be updated on rehash. X-Git-Tag: v1.4.0-rc3~18 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=331265c9ef7ea608c352ffa8315878206db6d6e5 src/proto-p10.c: Allow his_server{name,comment} to be updated on rehash. --- diff --git a/src/proto-p10.c b/src/proto-p10.c index 7711560..8e00b6a 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -289,8 +289,8 @@ static unsigned int num_privmsg_funcs; static privmsg_func_t *notice_funcs; static unsigned int num_notice_funcs; static struct dict *unbursted_channels; -static char *his_servername; -static char *his_servercomment; +static const char *his_servername; +static const char *his_servercomment; static struct userNode *AddUser(struct server* uplink, const char *nick, const char *ident, const char *hostname, const char *modes, const char *numeric, const char *userinfo, unsigned long timestamp, const char *realip); @@ -903,7 +903,7 @@ static CMD_FUNC(cmd_whois) log_module(MAIN_LOG, LOG_ERROR, "Could not find WHOIS origin user %s", origin); return 0; } - if(!(who = GetUserH(argv[2]))) { + if (!(who = GetUserH(argv[2]))) { irc_numeric(from, ERR_NOSUCHNICK, "%s@%s :No such nick", argv[2], self->name); return 1; } @@ -1609,13 +1609,13 @@ parse_cleanup(void) for (nn=0; nn