Add myself as admin

For some administrative operations, such as joining channels, it would
be useful if I could "imp"ersonate the bot.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2024-09-21 01:09:28 +02:00
parent 28efaf9eec
commit 84696672cd
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

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 {