diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-17 19:02:00 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-17 19:02:00 +0100 |
commit | 531b59bf953ad6c1fb7adfb6554dcc412fbe47e5 (patch) | |
tree | 1aef995d77c3254bc9ad1081d22fa52a0c64aa6f /connector/irc | |
parent | 86942a34a2aa086dee76c9e4e0b6942848e1b979 (diff) | |
download | easybridge-531b59bf953ad6c1fb7adfb6554dcc412fbe47e5.tar.gz easybridge-531b59bf953ad6c1fb7adfb6554dcc412fbe47e5.zip |
Logging
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 } |