diff options
Diffstat (limited to 'connector/irc')
-rw-r--r-- | connector/irc/irc.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connector/irc/irc.go b/connector/irc/irc.go index a57a2e2..ccbd803 100644 --- a/connector/irc/irc.go +++ b/connector/irc/irc.go @@ -126,15 +126,15 @@ func (irc *IRC) SetRoomInfo(roomId RoomID, info *RoomInfo) error { return err } + if info.Topic != "" { + irc.conn.Cmd.Topic(ch, info.Topic) + } if info.Name != "" && info.Name != ch { return fmt.Errorf("May not change IRC room name to other than %s", ch) } if info.Picture != nil { return fmt.Errorf("Room picture not supported on IRC") } - if info.Topic != "" { - irc.conn.Cmd.Topic(ch, info.Topic) - } return nil } |