summaryrefslogtreecommitdiff
path: root/modules/url_titles.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/url_titles.py')
-rw-r--r--modules/url_titles.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/url_titles.py b/modules/url_titles.py
index 5c5ae1b..e4bbae6 100644
--- a/modules/url_titles.py
+++ b/modules/url_titles.py
@@ -152,6 +152,8 @@ class Module:
self.irc.msg(channel if not channel == self.irc.nickname else nick.split('!')[0], titles)
if __name__ == '__main__':
- import sys
+ import sys, ConfigParser, os
+ config = ConfigParser.ConfigParser()
+ config.read([os.path.expanduser('~/.fot')])
m = Module(None)
print m.get_titles(' '.join(sys.argv[1:]))