diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-04 05:45:58 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-04 05:45:58 +0000 |
commit | 2708eea5d13c249143b83fbaa8b552992f0ac8b6 (patch) | |
tree | 5afffad5f83ca6daa89784c27f4d4e9c5f4eb8fc /src/modules/cs_appendtopic.c | |
parent | f58026749b0c0770a322893b27c013168be5cdbc (diff) |
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
Diffstat (limited to 'src/modules/cs_appendtopic.c')
-rw-r--r-- | src/modules/cs_appendtopic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c index 5a0194a42..2b21a3096 100644 --- a/src/modules/cs_appendtopic.c +++ b/src/modules/cs_appendtopic.c @@ -83,29 +83,29 @@ class CommandCSAppendTopic : public Command strscpy(topic, newtopic, sizeof(topic)); ci->last_topic = *topic ? sstrdup(topic) : NULL; - strscpy(ci->last_topic_setter, u->nick, NICKMAX); + ci->last_topic_setter = u->nick; ci->last_topic_time = time(NULL); if (c->topic) delete [] c->topic; c->topic = *topic ? sstrdup(topic) : NULL; - strscpy(c->topic_setter, u->nick, NICKMAX); + c->topic_setter = u->nick; if (ircd->topictsbackward) c->topic_time = c->topic_time - 1; else c->topic_time = ci->last_topic_time; if (!check_access(u, ci, CA_TOPIC)) - alog("%s: %s!%s@%s changed topic of %s as services admin.", Config.s_ChanServ, u->nick, u->GetIdent().c_str(), u->host, c->name); + alog("%s: %s!%s@%s changed topic of %s as services admin.", Config.s_ChanServ, u->nick.c_str(), u->GetIdent().c_str(), u->host, c->name.c_str()); if (ircd->join2set) { if (whosends(ci) == findbot(Config.s_ChanServ)) { - ircdproto->SendJoin(findbot(Config.s_ChanServ), c->name, c->creation_time); + ircdproto->SendJoin(findbot(Config.s_ChanServ), c->name.c_str(), c->creation_time); ircdproto->SendMode(NULL, c, "+o %s", Config.s_ChanServ); } } - ircdproto->SendTopic(whosends(ci), c, u->nick, topic); + ircdproto->SendTopic(whosends(ci), c, u->nick.c_str(), topic); if (ircd->join2set) { if (whosends(ci) == findbot(Config.s_ChanServ)) |