diff options
author | EUcancER <root@euer.krebsco.de> | 2012-05-02 14:47:11 +0200 |
---|---|---|
committer | EUcancER <root@euer.krebsco.de> | 2012-05-02 14:47:11 +0200 |
commit | 9d63450af2d30c42ab5cda1e59735d7f49dc6331 (patch) | |
tree | e1963bb6fe0a0e5afa992933df8d48c713bb04b8 | |
parent | f6efc875de47c0a8142fc3672b1c6d129acc672c (diff) |
Reaktor: fix socket import for hostname
-rwxr-xr-x | IRC/asybot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IRC/asybot.py b/IRC/asybot.py index bf0c396..df758ed 100755 --- a/IRC/asybot.py +++ b/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')) |