Added module configuration params: -params=<key>:<val>(!<key>:<val>])*

This commit is contained in:
Andreas Neue
2016-02-16 07:57:14 +01:00
parent 5f2dd41d55
commit 44ee1cf628
10 changed files with 67 additions and 55 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import (
)
func init() {
msgHandlers["fortune"] = fortuneHandleMessage
MsgHandlers["fortune"] = fortuneHandleMessage
log.Println("Initializing fortune module")
}
@@ -43,7 +43,7 @@ func fortune() {
s = strings.Replace(s, "\t", " ", -1)
for _, l := range strings.Split(s, "\n") {
if l != "" {
sayCh <- fmt.Sprintf("*\n%s", l)
SayCh <- fmt.Sprintf("*\n%s", l)
}
}
}