- std::string oldtopic = c->topic;
- c->topic.assign(params[3], 0, Instance->Config->Limits.MaxTopic);
- c->setby.assign(params[2], 0, 127);
- c->topicset = ts;
- /* if the topic text is the same as the current topic,
- * dont bother to send the TOPIC command out, just silently
- * update the set time and set nick.
- */
- if (oldtopic != params[3])