summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 0ff1298c1..6c70259bc 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -466,6 +466,10 @@ Channel* Channel::ForceChan(InspIRCd* Instance, Channel* Ptr, User* user, const
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);
}
+ else
+ {
+ user->WriteNumeric(RPL_NOTOPICSET, "%s %s :No topic is set", user->nick.c_str(), Ptr->name.c_str());
+ }
Ptr->UserList(user);
}
FOREACH_MOD_I(Instance,I_OnPostJoin,OnPostJoin(user, Ptr));