From f58c99d73e33bf3f92ea00281587742e010f306a Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Sat, 12 Mar 2016 18:12:40 +0100 Subject: [PATCH] Fix: A bug in the gogs module prevented fuzzytime from working --- modules/announcements.go | 5 +++-- modules/coffee.go | 2 +- modules/gogs.go | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/announcements.go b/modules/announcements.go index 3847e9b..a73ac8b 100644 --- a/modules/announcements.go +++ b/modules/announcements.go @@ -3,9 +3,10 @@ package modules import ( - "log" "strings" + "code.dnix.de/an/xlog" + "github.com/sorcix/irc" ) @@ -13,7 +14,7 @@ var () func init() { MsgHandlers["announcements"] = anncouncementsHandleMessage - log.Println("Initializing announcements module") + xlog.Info("Announcements module initialized") } func anncouncementsHandleMessage(m *irc.Message) { diff --git a/modules/coffee.go b/modules/coffee.go index 0418e77..deb2caa 100644 --- a/modules/coffee.go +++ b/modules/coffee.go @@ -17,7 +17,7 @@ import ( func init() { MsgHandlers["coffee"] = coffeeHandleMessage - xlog.Info("Cёffee module initialized") + xlog.Info("Coffee module initialized") } func coffeeHandleMessage(m *irc.Message) { diff --git a/modules/gogs.go b/modules/gogs.go index deac5ad..ccd36ed 100644 --- a/modules/gogs.go +++ b/modules/gogs.go @@ -18,7 +18,7 @@ var ( ) func init() { - MsgHandlers["fuzzytime"] = gogsHandleMessage + MsgHandlers["gogs"] = gogsHandleMessage xlog.Info("Gogs module initialized") }