diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-11-04 23:40:55 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-11-04 23:40:55 +0000 |
commit | d8f15ff06238dd96c62d96b5bfc4f4c3752fdeee (patch) | |
tree | 7da5f61390978b47fedac3b6d68e35f107b05afa /main.go | |
parent | fixed the wrong condition (diff) | |
download | milla-main.tar.gz milla-main.zip |
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) { |