summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2012-05-02 14:47:11 +0200
committerEUcancER <root@euer.krebsco.de>2012-05-02 14:47:11 +0200
commitf35944ef891981436f6a5656521872057c9b84f8 (patch)
tree87952bccdd458429dc433725842f74a7c86de6e3
parent314224da2ce24cf74151726c2d038fc490bb97d9 (diff)
Reaktor: fix socket import for hostname
-rwxr-xr-xReaktor/IRC/asybot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Reaktor/IRC/asybot.py b/Reaktor/IRC/asybot.py
index bf0c396f..df758ed6 100755
--- a/Reaktor/IRC/asybot.py
+++ b/Reaktor/IRC/asybot.py
@@ -9,7 +9,7 @@ def is_executable(x):
from asynchat import async_chat as asychat
from asyncore import loop
-from socket import AF_INET, SOCK_STREAM
+from socket import AF_INET, SOCK_STREAM,gethostname
from signal import SIGALRM, signal, alarm
from datetime import datetime as date, timedelta
import shlex
@@ -189,7 +189,7 @@ if __name__ == "__main__":
name = getconf1('Name', '/etc/tinc/retiolum/tinc.conf')
hostname = '%s.retiolum' % name
except:
- name = socket.gethostname()
+ name = gethostname()
hostname = name
nick = str(env.get('nick', name))
host = str(env.get('host', 'supernode'))