diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-10-20 17:33:10 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-10-24 12:57:24 +0200 |
commit | 9fb4378753ddec61a504a0dec403f40d6def7e90 (patch) | |
tree | 32955930be2d97614f3ec6290f67d0556769a16e /irc/tokens.go | |
parent | Remove draft file (diff) |
Support for soju.im/bouncer-networks
This patch also disable the highlight on reconnect. This might be an
issue (the user would want to know when senpai is online again?), but
with multiple connections, it's bothersome to have to unread all of
them on start (it wasn't a problem with only one connection since it was
read instantly).
Now, lastbuffer.txt also contains the network ID, otherwise the user
might end up on another buffer with the same name.
This patch does not extend /r to support multiple networks (it will send
the message to the latest query, whatever the current displayed network
is).
Diffstat (limited to 'irc/tokens.go')
-rw-r--r-- | irc/tokens.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/irc/tokens.go b/irc/tokens.go index bb5f399..a52a764 100644 --- a/irc/tokens.go +++ b/irc/tokens.go @@ -132,7 +132,6 @@ func escapeTagValue(unescaped string) string { } func parseTags(s string) (tags map[string]string) { - s = s[1:] tags = map[string]string{} for _, item := range strings.Split(s, ";") { @@ -239,7 +238,7 @@ func ParseMessage(line string) (msg Message, err error) { var tags string tags, line = word(line) - msg.Tags = parseTags(tags) + msg.Tags = parseTags(tags[1:]) } line = strings.TrimLeft(line, " ") |