diff options
author | mathieui <mathieui@mathieui.net> | 2012-03-09 14:42:22 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-03-09 14:42:22 +0100 |
commit | 786066da18d6ff58628c9665e3c711f7af7fce35 (patch) | |
tree | 6c99e224a10ea0b83d03806b4f91aa6dbf8e35f3 | |
parent | 5c412a66b8c148852dbf8d5b9ca45d08c7865fb1 (diff) | |
download | poezio-786066da18d6ff58628c9665e3c711f7af7fce35.tar.gz poezio-786066da18d6ff58628c9665e3c711f7af7fce35.tar.bz2 poezio-786066da18d6ff58628c9665e3c711f7af7fce35.tar.xz poezio-786066da18d6ff58628c9665e3c711f7af7fce35.zip |
Replace /load with /load_db in AI plugin…
-rw-r--r-- | plugins/ai.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ai.py b/plugins/ai.py index d86b2393..62ae2a96 100644 --- a/plugins/ai.py +++ b/plugins/ai.py @@ -105,7 +105,7 @@ class Plugin(BasePlugin): self.add_tab_command(tabs.MucTab, 'stop', self.command_stop, '/stop\nStop: Stop parsing the messages', None) self.add_tab_command(tabs.MucTab, 'flush', self.command_flush, '/flush\nFlush: Flush the database', None) self.add_tab_command(tabs.MucTab, 'save', self.command_save, '/save <filepath>\nSave: Save the database to a file', None) - self.add_tab_command(tabs.MucTab, 'load', self.command_load, '/load <filepath>\nLoad: Load the database from a file', None) + self.add_tab_command(tabs.MucTab, 'load_db', self.command_load_db, '/load_db <filepath>\nLoad: Load the database from a file', None) self.tabs = {} self.analyzer = Analyzer() @@ -144,7 +144,7 @@ class Plugin(BasePlugin): else: self.core.information('Nothing to flush', 'Info') - def command_load(self, arg): + def command_load_db(self, arg): name = self.core.current_tab().get_name() try: file = open(arg, 'rb') |