From 2708eea5d13c249143b83fbaa8b552992f0ac8b6 Mon Sep 17 00:00:00 2001 From: Adam- Date: Mon, 4 Jan 2010 05:45:58 +0000 Subject: Removed NICKMAX and CHANMAX, replaced user->nick, c->name, and ci->name with std::string git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2732 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_register.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/core/cs_register.c') diff --git a/src/core/cs_register.c b/src/core/cs_register.c index fd4c38f70..7e59b0c26 100644 --- a/src/core/cs_register.c +++ b/src/core/cs_register.c @@ -68,15 +68,16 @@ class CommandCSRegister : public Command if (c->topic) { ci->last_topic = sstrdup(c->topic); - strscpy(ci->last_topic_setter, c->topic_setter, NICKMAX); + ci->last_topic_setter = c->topic_setter; ci->last_topic_time = c->topic_time; } - else strscpy(ci->last_topic_setter, Config.s_ChanServ, NICKMAX); /* Set this to something, otherwise it will maliform the topic */ + else + ci->last_topic_setter = Config.s_ChanServ; ci->bi = NULL; ++ci->founder->channelcount; - alog("%s: Channel '%s' registered by %s!%s@%s", Config.s_ChanServ, chan, u->nick, u->GetIdent().c_str(), u->host); - notice_lang(Config.s_ChanServ, u, CHAN_REGISTERED, chan, u->nick); + alog("%s: Channel '%s' registered by %s!%s@%s", Config.s_ChanServ, chan, u->nick.c_str(), u->GetIdent().c_str(), u->host); + notice_lang(Config.s_ChanServ, u, CHAN_REGISTERED, chan, u->nick.c_str()); /* Implement new mode lock */ check_modes(c); -- cgit