aboutsummaryrefslogtreecommitdiffstats
path: root/pycrctrl.pyp
diff options
context:
space:
mode:
authorFulgen301 <tokmajigeorge@gmailc.om>2016-12-08 16:03:54 +0100
committerFulgen301 <tokmajigeorge@gmailc.om>2016-12-08 16:03:54 +0100
commita0313e14d953998c11c075f349a73b5e15be8813 (patch)
tree53b56edb4ab2ca90a15589efd8ed8fef5008f554 /pycrctrl.pyp
parenta537ce72e47d4598fb4fb5d914751b836d76607e (diff)
downloadpycrctrl-a0313e14d953998c11c075f349a73b5e15be8813.tar.gz
pycrctrl-a0313e14d953998c11c075f349a73b5e15be8813.zip
Bugs fixed.
Diffstat (limited to 'pycrctrl.pyp')
-rw-r--r--pycrctrl.pyp7
1 files changed, 3 insertions, 4 deletions
diff --git a/pycrctrl.pyp b/pycrctrl.pyp
index fe76d4b..1f650c7 100644
--- a/pycrctrl.pyp
+++ b/pycrctrl.pyp
@@ -271,8 +271,8 @@ class PyCRCtrl(object):
if output[0] == ">":
output = output[1:]
- if output.find(self.prefix) != -1 and output.find("<{}>".format(self.irc.nick)) == -1:
- part = output[output.find(self.prefix)+len(self.prefix):].split(" ",1)
+ if output.find(self.getConfigEntry("prefix")) != -1 and output.find("<{}>".format(self.irc.nick)) == -1:
+ part = output[output.find(self.getConfigEntry("prefix"))+len(self.getConfigEntry("prefix")):].split(" ",1)
found = False
x = None
if len(part) > 0:
@@ -301,11 +301,10 @@ class PyCRCtrl(object):
except (UnicodeDecodeError, UnicodeEncodeError):
pass
- # RegExps are from CRSM ((c) DerTod)
if self.irc:
if output.find("<" + self.irc.nick + ">") == -1:
if bool(re.match(r"^<.*>", output) and output.find("[IRC]") == -1) and \
- bool(output.find(self.prefix) == -1):
+ bool(output.find(self.getConfigEntry("prefix")) == -1):
self.irc.reply("[Clonk]{}".format(output), to=self.getConfigEntry("channels")["ingame"])
elif bool(re.match(self.getConfigEntry("RegExps")["joinExp"], output)) or \