From 45ba50b132ecb1224c58e0cd431f59580dd4c12d Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Thu, 1 Aug 2019 15:16:16 +0200 Subject: [PATCH] test --- modules/markov.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/markov.go b/modules/markov.go index baa42ed..5a02025 100644 --- a/modules/markov.go +++ b/modules/markov.go @@ -23,7 +23,8 @@ import ( "git.dnix.de/an/xlog" ) -var *markovPrefixLen = 3 +var markovPrefixLen *int + var ( //markovPrefixLen = flag.Int("markov_prefix_len", 3, "markov: prefix len") markovAnswerLen = flag.Int("markov_answer_len", 10, "markov: answer len") @@ -37,6 +38,7 @@ var markovChain *MarkovChain func init() { MsgFuncs["markov"] = markovHandleMessage RunFuncs["markov"] = markovRun + *markovPrefixLen = 3 } func markovHandleMessage(m *Message) {