Pārlūkot izejas kodu

Fix broken color codes.

tags/v0.3
Ben Kurtovic pirms 9 gadiem
vecāks
revīzija
a15149df82
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      earwigbot/commands/cidr.py

+ 2
- 2
earwigbot/commands/cidr.py Parādīt failu

@@ -66,10 +66,10 @@ class CIDR(Command):
descr = self._describe(cidr.family, cidr.size)

msg = ("Smallest CIDR range is \x02{0}\x0F, covering {1} from "
"\x03\x05{2}\x0F to \x03\x05{3}\x0F{4}.")
"\x0305{2}\x0F to \x0305{3}\x0F{4}.")
self.reply(data, msg.format(
cidr.range, cidr.addresses, cidr.low, cidr.high,
" (\x03\x04{0}\x0F)".format(descr) if descr else ""))
" (\x0304{0}\x0F)".format(descr) if descr else ""))

def _parse_arg(self, arg):
"""Converts an argument into an IP address."""


Notiek ielāde…
Atcelt
Saglabāt