Changed version info format (using CTCP).
This commit is contained in:
parent
1e218af790
commit
768e995926
4
main.go
4
main.go
|
@ -130,7 +130,7 @@ func ConnectHandler(s ircx.Sender, m *irc.Message) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
sayCh <- fmt.Sprintf("%s\n*** %s", "*", SoftwareInfo())
|
sayCh <- fmt.Sprintf("%s\n\x01ACTION running on %s", "*", SoftwareInfo())
|
||||||
}
|
}
|
||||||
|
|
||||||
func PingHandler(s ircx.Sender, m *irc.Message) {
|
func PingHandler(s ircx.Sender, m *irc.Message) {
|
||||||
|
@ -159,7 +159,7 @@ func HandleMessage(m *irc.Message) {
|
||||||
}
|
}
|
||||||
switch tok[0] {
|
switch tok[0] {
|
||||||
case "!version":
|
case "!version":
|
||||||
sayCh <- fmt.Sprintf("%s\n*** %s", "*", SoftwareInfo())
|
sayCh <- fmt.Sprintf("%s\n\x01ACTION running on %s", "*", SoftwareInfo())
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue