aboutsummaryrefslogtreecommitdiff
path: root/connector/irc/irc.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-16 23:27:03 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-16 23:27:03 +0100
commitc3b941841e193c1d5c32f9d6226a95475d627249 (patch)
treeb3ac238623f6cafa08a063e886d97806cfe836bc /connector/irc/irc.go
parenta11be80cf0c13263791f3e4f82fda461acd77130 (diff)
downloadeasybridge-c3b941841e193c1d5c32f9d6226a95475d627249.tar.gz
easybridge-c3b941841e193c1d5c32f9d6226a95475d627249.zip
Basic bridging going on both ways successfully
Diffstat (limited to 'connector/irc/irc.go')
-rw-r--r--connector/irc/irc.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/connector/irc/irc.go b/connector/irc/irc.go
index e57d71b..77359d0 100644
--- a/connector/irc/irc.go
+++ b/connector/irc/irc.go
@@ -170,6 +170,11 @@ func (irc *IRC) Leave(roomId RoomID) {
}
func (irc *IRC) Send(event *Event) error {
+ // Workaround girc bug
+ if event.Text[0] == ':' {
+ event.Text = " " + event.Text
+ }
+
dest := ""
if event.Room != "" {
ch, err := irc.checkRoomId(event.Room)