mirror of
https://code.dnix.de/da/flokatirc
synced 2026-07-27 08:59:44 +02:00
Added module configuration params: -params=<key>:<val>(!<key>:<val>])*
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user