diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-08-13 22:44:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-08-13 22:44:07 +0000 |
commit | 1fb8a3f1b120db764375911be9ad8019a807a8ad (patch) | |
tree | 06669fedbdf93d5d3b7ba6a35dba333e98c9c362 | |
parent | 911e33e3995509afa4cf3ea8fae0ddca2dad78dc (diff) |
Merge patch from dKingston for missing TOPIC numeric, also replace the literal 331 with an RPL_* enum value, thanks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11510 e03df62e-2008-0410-955e-edbf42e46eb7
-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)); |