add server info command. send command line commands with tcp instead of http
[electrum-server.git] / backends / irc / __init__.py
index 81b223f..19ed451 100644 (file)
@@ -111,6 +111,10 @@ class ServerProcessor(Processor):
             if password == self.password:
                 self.shared.stop()
                 result = 'ok'
+
+        elif method == 'server.info':
+            result = map(lambda s: s.address, self.dispatcher.request_dispatcher.sessions)
+
         else:
             print "unknown method", request