Merge pull request 'Add myself as admin' (#12) from admin into master

Reviewed-on: #12
This commit is contained in:
Pratyush Desai 2024-09-21 07:23:34 +02:00
commit be1b15b6f9

View File

@ -45,7 +45,13 @@ func (w *WatBot) HandleIrcMsg(c *irc.Client, m *irc.Message) {
} }
func (w *WatBot) Admin(m *irc.Message) bool { 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 { func (w *WatBot) Allowed(c string, r []string) bool {