summaryrefslogtreecommitdiffstats
path: root/wat/bot.go
diff options
context:
space:
mode:
Diffstat (limited to 'wat/bot.go')
-rw-r--r--wat/bot.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/wat/bot.go b/wat/bot.go
index 48559d4..dae4e89 100644
--- a/wat/bot.go
+++ b/wat/bot.go
@@ -18,8 +18,9 @@ type WatBot struct {
}
type WatConfig struct {
- PermittedChannels []string
+ AdminHosts []string
IgnoredHosts []string
+ PermittedChannels []string
}
func NewWatBot(config *irc.ClientConfig, watConfig *WatConfig, serverConn *tls.Conn) *WatBot {
@@ -45,7 +46,7 @@ func (w *WatBot) HandleIrcMsg(c *irc.Client, m *irc.Message) {
}
func (w *WatBot) Admin(m *irc.Message) bool {
- admins := [2]string{"mph.monster", "cranberry.juice"}
+ admins := w.c.AdminHosts
for _, admin := range admins {
if m.Prefix.Host == admin {
return true