Make channel and privmsg replies more useful for logged-out users.

This commit is contained in:
Jeremy Latt 2013-05-12 11:37:35 -07:00
parent fd814bf969
commit f24bb5ee7d
3 changed files with 19 additions and 13 deletions

View file

@ -158,7 +158,7 @@ func (m *PartCommand) HandleChannel(channel *Channel) {
}
func (m *TopicCommand) HandleChannel(channel *Channel) {
user := m.Client().user
user := m.User()
if !channel.members[user] {
user.replies <- ErrNotOnChannel(channel)
@ -181,5 +181,5 @@ func (m *TopicCommand) HandleChannel(channel *Channel) {
}
func (m *PrivMsgCommand) HandleChannel(channel *Channel) {
channel.Replies() <- RplPrivMsgChannel(channel, m.Client().user, m.message)
channel.Replies() <- RplPrivMsgChannel(channel, m.User(), m.message)
}