diff --git a/dr_botzo/markov/lib.py b/dr_botzo/markov/lib.py index 370a602..3b2d693 100644 --- a/dr_botzo/markov/lib.py +++ b/dr_botzo/markov/lib.py @@ -87,6 +87,8 @@ def generate_sentence(context, topics=None, max_words=30): def get_or_create_target_context(target_name): """Return the context for a provided nick/channel, creating missing ones.""" + target_name = target_name.lower() + # find the stuff, or create it try: target = MarkovTarget.objects.get(name=target_name)