Sun, 16 Dec 2012 17:45:05 +0100
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)))