removed obsolete \prune command

This commit is contained in:
Steffen Vogel 2017-02-11 17:50:59 -03:00
parent ed2f1444a5
commit 81687c9402

View file

@ -39,7 +39,6 @@ class Bot():
self.commands = {
"help": self._help,
"prune": self._prune,
"groups": self._groups,
"getgroups": self._getgroups
}
@ -76,7 +75,6 @@ class Bot():
def _help(self):
self.send("""following bot commands are available:
\\help show this message
\\prune clear your buddylist
following user commands are available:
\\lastseen request last online timestamp from buddy
@ -86,11 +84,6 @@ following group commands are available
\\groups print all attended groups
\\getgroups get current groups from WA""")
def _prune(self):
self.session.buddies.prune()
self.session.updateRoster()
self.send("buddy list cleared")
def _groups(self):
for group in self.session.groups:
buddy = self.session.groups[group].owner