disable old greeter
This commit is contained in:
parent
2724984b3b
commit
a94f1751ff
|
@ -81,7 +81,7 @@ func handleIRCCon(c *irc.Client, m *irc.Message) {
|
||||||
} else if text[len(text)-1] == "invite" {
|
} else if text[len(text)-1] == "invite" {
|
||||||
c.Write("INVITE " + victim + " " + channel)
|
c.Write("INVITE " + victim + " " + channel)
|
||||||
sent++
|
sent++
|
||||||
} else if strings.Contains(m.Trailing(), "greetings") {
|
}/* else if strings.Contains(m.Trailing(), "greetings") {
|
||||||
c.WriteMessage(&irc.Message{
|
c.WriteMessage(&irc.Message{
|
||||||
Command: "PRIVMSG",
|
Command: "PRIVMSG",
|
||||||
Params: []string{
|
Params: []string{
|
||||||
|
@ -89,9 +89,18 @@ func handleIRCCon(c *irc.Client, m *irc.Message) {
|
||||||
victim + ": hi",
|
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() {
|
func main() {
|
||||||
|
|
Loading…
Reference in New Issue