]> gitweb.pimeys.fr Git - bots/josh.git/commitdiff
Forgot some "basile"
authorVincent Le Gallic <legallic@crans.org>
Sun, 6 Mar 2016 20:09:00 +0000 (21:09 +0100)
committerVincent Le Gallic <legallic@crans.org>
Sun, 6 Mar 2016 20:09:00 +0000 (21:09 +0100)
josh.py

diff --git a/josh.py b/josh.py
index a96aa257483cd3922fe1bdf48a09d9f62cfb5578..02ba1f0ad6a2579dabadd1375d1ea4f28499e380 100755 (executable)
--- a/josh.py
+++ b/josh.py
@@ -442,7 +442,7 @@ class Josh(ircbot.SingleServerIRCBot):
 
 class Logger(object):
     """Pour écrire ailleurs que sur stdout"""
-    def __init__(self, filename="basile.full.log"):
+    def __init__(self, filename="josh.full.log"):
         self.filename = filename
 
     def write(self, message):
@@ -491,14 +491,14 @@ def main():
     josh = Josh(serveur,debug)
     # Si on reçoit un SIGHUP, on reload la config
     def sighup_handler(signum, frame):
-        basile.execute_reload(auteur="SIGHUP")
+        josh.execute_reload(auteur="SIGHUP")
     signal.signal(signal.SIGHUP, sighup_handler)
     # Daemonization
     if daemon:
         child_pid = os.fork()
         if child_pid == 0:
             os.setsid()
-            basile.start_as_daemon(outfile)
+            josh.start_as_daemon(outfile)
         else:
             # on enregistre le pid du bot
             pidfile = "/var/run/bots/josh.pid"