diff options
author | Pratyush Desai | 2024-09-21 07:23:34 +0200 |
---|---|---|
committer | Pratyush Desai | 2024-09-21 07:23:34 +0200 |
commit | be1b15b6f9ddca104e88b6231fcfbb34532ca1cf (patch) | |
tree | 6054f9409e619a21576dc0522d4d55257d7eb2ad /wat/bot.go | |
parent | 28efaf9eec032bcdaa26cf9ff4f2ac79bb60f3e3 (diff) | |
parent | 84696672cd7fc5088d7942ad0af35de807cb1c37 (diff) | |
download | watbot-be1b15b6f9ddca104e88b6231fcfbb34532ca1cf.tar.gz watbot-be1b15b6f9ddca104e88b6231fcfbb34532ca1cf.tar.bz2 watbot-be1b15b6f9ddca104e88b6231fcfbb34532ca1cf.zip |
Merge pull request 'Add myself as admin' (#12) from admin into master
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/12
Diffstat (limited to 'wat/bot.go')
-rw-r--r-- | wat/bot.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -45,7 +45,13 @@ func (w *WatBot) HandleIrcMsg(c *irc.Client, m *irc.Message) { } func (w *WatBot) Admin(m *irc.Message) bool { - return m.Prefix.Host == "mph.monster" + admins := [2]string{"mph.monster", "cranberry.juice"} + for _, admin := range admins { + if m.Prefix.Host == admin { + return true + } + } + return false } func (w *WatBot) Allowed(c string, r []string) bool { |