summaryrefslogtreecommitdiffstats
path: root/phenny
diff options
context:
space:
mode:
authorSean B. Palmer <http://inamidst.com/sbp/>2008-04-26 15:54:35 +0100
committerSean B. Palmer <http://inamidst.com/sbp/>2008-04-26 15:54:35 +0100
commit986953131d1e399a9b277984a2234cd0c5f7656c (patch)
treebabe5d30a618c40b059421b43a9ca19b9b1beb14 /phenny
parent286d4a8497621d2f3c0f1f8d66db60b11c87fad5 (diff)
downloadbot-986953131d1e399a9b277984a2234cd0c5f7656c.tar.gz
bot-986953131d1e399a9b277984a2234cd0c5f7656c.tar.bz2
bot-986953131d1e399a9b277984a2234cd0c5f7656c.zip
Allow the user to configure the port in the config, and other fixes.
Diffstat (limited to 'phenny')
-rwxr-xr-xphenny5
1 files changed, 5 insertions, 0 deletions
diff --git a/phenny b/phenny
index 5a632ed..b8f1386 100755
--- a/phenny
+++ b/phenny
@@ -116,11 +116,16 @@ def main(argv=None):
name = os.path.basename(config_name).split('.')[0] + '_config'
module = imp.load_source(name, config_name)
module.filename = config_name
+
if not hasattr(module, 'prefix'):
module.prefix = r'\.'
+
if not hasattr(module, 'name'):
module.name = 'Phenny Palmersbot, http://inamidst.com/phenny/'
+ if not hasattr(module, 'port'):
+ module.port = 6667
+
if module.host == 'irc.example.net':
error = ('Error: you must edit the config file first!\n' +
"You're currently using %s" % module.filename)