diff options
author | Peter Powell <petpow@saberuk.com> | 2015-08-26 12:02:31 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2015-08-26 12:02:31 +0100 |
commit | b0e64b8cea2d721588d92072a8d16fdd99a9c945 (patch) | |
tree | c714d0666674ab1a78bca3ee2f18fd9ea1db8610 /src/channels.cpp | |
parent | ec5529639dd7cd315ce98b288f96c522c464e46a (diff) |
Fix sending the wrong numerics on join when a topic is empty.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 9f1eafd0c..6802e3d7d 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -412,7 +412,7 @@ Channel* Channel::ForceChan(Channel* Ptr, User* user, const std::string &privs, if (IS_LOCAL(user)) { - if (Ptr->topicset) + if (!Ptr->topic.empty()) { user->WriteNumeric(RPL_TOPIC, "%s %s :%s", user->nick.c_str(), Ptr->name.c_str(), Ptr->topic.c_str()); user->WriteNumeric(RPL_TOPICTIME, "%s %s %s %lu", user->nick.c_str(), Ptr->name.c_str(), Ptr->setby.c_str(), (unsigned long)Ptr->topicset); |