add more color types
This commit is contained in:
parent
71a988df23
commit
36d6cfaff3
@ -1034,12 +1034,13 @@ def update_last_said(cli, nick, chan, rest):
|
|||||||
if var.PHASE not in ("none", "join"):
|
if var.PHASE not in ("none", "join"):
|
||||||
var.LOGGER.logChannelMessage(nick, rest)
|
var.LOGGER.logChannelMessage(nick, rest)
|
||||||
|
|
||||||
if var.CARE_BOLD and BOLD in "".join(rest):
|
fullstring = "".join(rest)
|
||||||
|
if var.CARE_BOLD and BOLD in fullstring:
|
||||||
if var.KILL_BOLD:
|
if var.KILL_BOLD:
|
||||||
cli.send("KICK {0} {1} :Using bold is not allowed".format(botconfig.CHANNEL, nick))
|
cli.send("KICK {0} {1} :Using bold is not allowed".format(botconfig.CHANNEL, nick))
|
||||||
else:
|
else:
|
||||||
cli.msg(botconfig.CHANNEL, nick + ": Using bold in the channel is not allowed.")
|
cli.msg(botconfig.CHANNEL, nick + ": Using bold in the channel is not allowed.")
|
||||||
if var.CARE_COLOR and "\x03" in "".join(rest):
|
if var.CARE_COLOR and any(code in fullstring for code in ["\x03", "\x16", "\x1f" ]):
|
||||||
if var.KILL_COLOR:
|
if var.KILL_COLOR:
|
||||||
cli.send("KICK {0} {1} :Using color is not allowed".format(botconfig.CHANNEL, nick))
|
cli.send("KICK {0} {1} :Using color is not allowed".format(botconfig.CHANNEL, nick))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user