浏览代码

Fix broken color codes.

tags/v0.3
Ben Kurtovic 9 年前
父节点
当前提交
a15149df82
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      earwigbot/commands/cidr.py

+ 2
- 2
earwigbot/commands/cidr.py 查看文件

@@ -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."""


正在加载...
取消
保存