Merge branch 'master' of https://code.dnix.de/an/flokatirc
This commit is contained in:
commit
835f3349d6
5
main.go
5
main.go
|
@ -31,6 +31,7 @@ var (
|
||||||
nspass = flag.String("nspass", "", "NickServ password")
|
nspass = flag.String("nspass", "", "NickServ password")
|
||||||
mods = flag.String("mods", "", "Modules to load")
|
mods = flag.String("mods", "", "Modules to load")
|
||||||
params = flag.String("params", "", "Module params")
|
params = flag.String("params", "", "Module params")
|
||||||
|
autocmd = flag.String("autocmd", "", "Autosend IRC command")
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -85,6 +86,10 @@ func main() {
|
||||||
}()
|
}()
|
||||||
|
|
||||||
go Ping(bot)
|
go Ping(bot)
|
||||||
|
if *autocmd != "" {
|
||||||
|
println(*autocmd)
|
||||||
|
bot.Sender.Send(&irc.Message{Command: *autocmd})
|
||||||
|
}
|
||||||
RegisterHandlers(bot)
|
RegisterHandlers(bot)
|
||||||
bot.HandleLoop()
|
bot.HandleLoop()
|
||||||
xlog.Info("Exiting")
|
xlog.Info("Exiting")
|
||||||
|
|
Loading…
Reference in New Issue