diff options
-rw-r--r-- | include/numerics.h | 1 | ||||
-rw-r--r-- | src/channels.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/numerics.h b/include/numerics.h index 662d1a8b3..b437397cb 100644 --- a/include/numerics.h +++ b/include/numerics.h @@ -66,6 +66,7 @@ enum Numerics RPL_RULESEND = 309, // unrealircd RPL_CHANNELMODEIS = 324, RPL_CHANNELCREATED = 329, // ??? + RPL_NOTOPICSET = 331, RPL_TOPIC = 332, RPL_TOPICTIME = 333, // not RFC, extremely common though 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)); |