Skip to content

Commit

Permalink
Fix(Main): Fix a wrong condition on internal helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne02ptzero committed Apr 11, 2017
1 parent ca0d200 commit dab51a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions morphux.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def loop(self):
elif ("NICK" in line):
self.onNickChange(line)
elif ("PRIVMSG" in line):
infos = self.getInfo(line)
infos = self.getInfo(line, from_main = 1)
for name, function in self.before.items():
if (function(self, line) == 0):
before = 0
Expand Down Expand Up @@ -78,7 +78,7 @@ def sendMessage(self, string, user = False):

# Get Line Information
# @param: string
def getInfo(self, line, force = 0):
def getInfo(self, line, force = 0, from_main = 0):
infos = {}
infos["fullLine"] = line
args = line.split(":", 2)[2]
Expand All @@ -91,7 +91,7 @@ def getInfo(self, line, force = 0):
args[0] = args[0][1:]
infos["command"] = args[0]
args.remove(args[0])
if (infos["command"] == "help"):
if (infos["command"] == "help" and from_bot == 1):
self.showHelp(args)
return False
infos["args"] = args
Expand Down

0 comments on commit dab51a7

Please sign in to comment.