This commit is contained in:
overflowerror 2015-03-23 13:34:11 +01:00
parent d4b078d9e4
commit 60aaa1fef4

View file

@ -97,7 +97,7 @@ if __name__ == "__main__":
log("unprivileged user @" + dm.author.screen_name + " tried to execute command (dm) \"" + dm.text.replace("\n", "\\n") + "\"\n") log("unprivileged user @" + dm.author.screen_name + " tried to execute command (dm) \"" + dm.text.replace("\n", "\\n") + "\"\n")
if not ALLOW_ONLY_DM_COMMANDS: if not ALLOW_ONLY_DM_COMMANDS:
mentions = api.mentions(since_id = lastChange) mentions = api.mentions_timeline(since_id = lastChange)
for mention in mentions: for mention in mentions:
lastChange = mention.id lastChange = mention.id
if len(COMMAND_SOURCE_ACCOUNTS) == 0: if len(COMMAND_SOURCE_ACCOUNTS) == 0: