1
0
Fork 0
forked from External/ergo

remove prefix from local replies; fix topic message

This commit is contained in:
Jeremy Latt 2014-02-12 18:14:19 -08:00
parent db2a21fee0
commit 52dd2521c2
6 changed files with 63 additions and 63 deletions

View file

@ -357,8 +357,9 @@ func (m *PrivMsgCommand) TargetIsChannel() bool {
type TopicCommand struct {
BaseCommand
channel string
topic string
channel string
setTopic bool
topic string
}
func (cmd *TopicCommand) String() string {
@ -373,6 +374,7 @@ func NewTopicCommand(args []string) (editableCommand, error) {
channel: args[0],
}
if len(args) > 1 {
msg.setTopic = true
msg.topic = args[1]
}
return msg, nil