summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge')
-rw-r--r--bridge/irc/handlers.go4
-rw-r--r--bridge/irc/irc.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/bridge/irc/handlers.go b/bridge/irc/handlers.go
index c94ea892..ce4f0445 100644
--- a/bridge/irc/handlers.go
+++ b/bridge/irc/handlers.go
@@ -81,7 +81,7 @@ func (b *Birc) handleJoinPart(client *girc.Client, event girc.Event) {
return
}
if event.Command == "QUIT" {
- if event.Source.Name == b.Nick && strings.Contains(event.Trailing, "Ping timeout") {
+ if event.Source.Name == b.Nick && strings.Contains(event.Last(), "Ping timeout") {
b.Log.Infof("%s reconnecting ..", b.Account)
b.Remote <- config.Message{Username: "system", Text: "reconnect", Channel: channel, Account: b.Account, Event: config.EventFailure}
return
@@ -164,7 +164,7 @@ func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) {
return
}
rmsg := config.Message{Username: event.Source.Name, Channel: strings.ToLower(event.Params[0]), Account: b.Account, UserID: event.Source.Ident + "@" + event.Source.Host}
- b.Log.Debugf("== Receiving PRIVMSG: %s %s %#v", event.Source.Name, event.Trailing, event)
+ b.Log.Debugf("== Receiving PRIVMSG: %s %s %#v", event.Source.Name, event.Last(), event)
// set action event
if event.IsAction() {
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index 4e3d3ed4..4b7203c4 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -295,7 +295,7 @@ func (b *Birc) storeNames(client *girc.Client, event girc.Event) {
channel := event.Params[2]
b.names[channel] = append(
b.names[channel],
- strings.Split(strings.TrimSpace(event.Trailing), " ")...)
+ strings.Split(strings.TrimSpace(event.Last()), " ")...)
}
func (b *Birc) formatnicks(nicks []string) string {