A little extension of the IRC CTCP VERSION command response.

Sun, 16 Dec 2012 17:45:05 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 16 Dec 2012 17:45:05 +0100
changeset 2273
58d27b642a35
parent 2272
fda4c45f21ff
child 2274
66aecdb76175

A little extension of the IRC CTCP VERSION command response.

Network/IRC/IrcWidget.py file | annotate | diff | comparison | revisions
--- a/Network/IRC/IrcWidget.py	Sun Dec 16 16:17:17 2012 +0100
+++ b/Network/IRC/IrcWidget.py	Sun Dec 16 17:45:05 2012 +0100
@@ -781,7 +781,11 @@
                 ctcpRequest, ctcpArg = ctcpCommand, ""
             ctcpRequest = ctcpRequest.lower()
             if ctcpRequest == "version":
-                msg = "Eric IRC client {0}, {1}".format(Version, Copyright)
+                if Version.startswith("@@"):
+                    vers = ""
+                else:
+                    vers = " " + Version
+                msg = "Eric IRC client{0}, {1}".format(vers, Copyright)
                 self.networkWidget.addServerMessage(self.trUtf8("CTCP"),
                     self.trUtf8("Received Version request from {0}.").format(
                     match.group(1)))

eric ide

mercurial