join rooms when invited
This commit is contained in:
parent
a57627fa00
commit
27700eb920
4
irc.go
4
irc.go
@ -42,6 +42,10 @@ func ircConnect(store *FStore, plugins *plugins.Plugins) error {
|
||||
log.Printf("IRC: joining %q\n", r)
|
||||
c.Write(fmt.Sprintf("JOIN %s", r))
|
||||
}
|
||||
case "INVITE":
|
||||
room := m.Trailing()
|
||||
log.Printf("IRC: joining %q\n", room)
|
||||
c.Write(fmt.Sprintf("JOIN %s", room))
|
||||
case "PRIVMSG":
|
||||
msg := m.Trailing()
|
||||
from := m.Prefix.Name
|
||||
|
Loading…
Reference in New Issue
Block a user