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 /src/channels.cpp | |
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
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 4 |
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)); |