From d8f15ff06238dd96c62d96b5bfc4f4c3752fdeee Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 4 Nov 2024 18:40:55 -0500 Subject: added the iana whois command. added the new genelirc option --- main.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 6d0d349..31b9c88 100644 --- a/main.go +++ b/main.go @@ -594,6 +594,15 @@ func runCommand( case "forget": client.Cmd.Reply(event, "I no longer even know whether you're supposed to wear or drink a camel.'") + case "whois": + if len(args) < 2 { + client.Cmd.Reply(event, errNotEnoughArgs.Error()) + + break + } + + ianaResponse := IANAWhoisGet(args[1], appConfig) + client.Cmd.Reply(event, ianaResponse) case "roll": lowerLimit := 1 upperLimit := 6 @@ -1227,7 +1236,6 @@ func populateWatchListWords(appConfig *TomlConfig) { } } - // log.Print(appConfig.WatchLists["security"].Words) } func WatchListHandler(irc *girc.Client, appConfig TomlConfig) { -- cgit v1.2.3