Skip to content

Commit

Permalink
Merge patch from dKingston for missing TOPIC numeric, also replace th…
Browse files Browse the repository at this point in the history
…e literal 331 with an RPL_* enum value, thanks!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11510 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
braindigitalis committed Aug 13, 2009
1 parent 911e33e commit 1fb8a3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/numerics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions src/channels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 1fb8a3f

Please sign in to comment.