disable old greeter

This commit is contained in:
dave 2020-08-15 16:24:25 -07:00
parent 2724984b3b
commit a94f1751ff

View File

@ -81,7 +81,7 @@ func handleIRCCon(c *irc.Client, m *irc.Message) {
} else if text[len(text)-1] == "invite" {
c.Write("INVITE " + victim + " " + channel)
sent++
} else if strings.Contains(m.Trailing(), "greetings") {
}/* else if strings.Contains(m.Trailing(), "greetings") {
c.WriteMessage(&irc.Message{
Command: "PRIVMSG",
Params: []string{
@ -89,9 +89,18 @@ func handleIRCCon(c *irc.Client, m *irc.Message) {
victim + ": hi",
},
})
}*/
} else if m.Command == "JOIN" && c.FromChannel(m) {
if m.Prefix.Name != c.CurrentNick() {
c.WriteMessage(&irc.Message{
Command: "PRIVMSG",
Params: []string{
m.Params[0],
"greetings " + m.Prefix.Name,
},
})
}
}
}
func main() {