mirror of
https://code.dnix.de/da/flokatirc
synced 2026-07-27 09:09:45 +02:00
Fix: A bug in the gogs module prevented fuzzytime from working
This commit is contained in:
@@ -3,9 +3,10 @@
|
|||||||
package modules
|
package modules
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"code.dnix.de/an/xlog"
|
||||||
|
|
||||||
"github.com/sorcix/irc"
|
"github.com/sorcix/irc"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -13,7 +14,7 @@ var ()
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
MsgHandlers["announcements"] = anncouncementsHandleMessage
|
MsgHandlers["announcements"] = anncouncementsHandleMessage
|
||||||
log.Println("Initializing announcements module")
|
xlog.Info("Announcements module initialized")
|
||||||
}
|
}
|
||||||
|
|
||||||
func anncouncementsHandleMessage(m *irc.Message) {
|
func anncouncementsHandleMessage(m *irc.Message) {
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
MsgHandlers["coffee"] = coffeeHandleMessage
|
MsgHandlers["coffee"] = coffeeHandleMessage
|
||||||
xlog.Info("Cёffee module initialized")
|
xlog.Info("Coffee module initialized")
|
||||||
}
|
}
|
||||||
|
|
||||||
func coffeeHandleMessage(m *irc.Message) {
|
func coffeeHandleMessage(m *irc.Message) {
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
MsgHandlers["fuzzytime"] = gogsHandleMessage
|
MsgHandlers["gogs"] = gogsHandleMessage
|
||||||
xlog.Info("Gogs module initialized")
|
xlog.Info("Gogs module initialized")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user