New mod management, new parameter -mods

This commit is contained in:
Andreas Neue
2016-03-19 23:49:41 +01:00
parent 1dad661ceb
commit 7bffa566c5
13 changed files with 57 additions and 43 deletions
+1 -5
View File
@@ -12,8 +12,6 @@ import (
"sync"
"time"
"code.dnix.de/an/xlog"
"github.com/sorcix/irc"
"github.com/sorcix/irc/ctcp"
)
@@ -29,9 +27,8 @@ var (
)
func init() {
MsgHandlers["coffee"] = coffeeHandleMessage
MsgFuncs["coffee"] = coffeeHandleMessage
r.names = make(map[string]bool)
xlog.Info("Coffee module initialized")
}
func coffeeHandleMessage(m *irc.Message) {
@@ -108,4 +105,3 @@ func printAction(s string) {
msg := ctcp.Encode(ctcp.ACTION, fmt.Sprintf(s))
SayCh <- fmt.Sprintf("%s\n%s", "*", msg)
}