aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-11-04 23:40:55 +0000
committerterminaldweller <devi@terminaldweller.com>2024-11-04 23:40:55 +0000
commitd8f15ff06238dd96c62d96b5bfc4f4c3752fdeee (patch)
tree7da5f61390978b47fedac3b6d68e35f107b05afa /main.go
parentfixed the wrong condition (diff)
downloadmilla-main.tar.gz
milla-main.zip
added the iana whois command. added the new genelirc optionHEADmain
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 9 insertions, 1 deletions
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) {