mirror of
https://github.com/sys-fs/seddy
synced 2024-11-26 04:57:18 -05:00
Don't respond if the dot commands don't begin the message.
This commit is contained in:
parent
b447e9fa78
commit
d12348ef7a
4
seddy.py
4
seddy.py
@ -102,9 +102,9 @@ if __name__ == "__main__":
|
|||||||
if 'PING' in line:
|
if 'PING' in line:
|
||||||
send.write('PONG\r\n')
|
send.write('PONG\r\n')
|
||||||
send.flush()
|
send.flush()
|
||||||
if '.bots' in msg or '.bot ' + nick in msg:
|
if '.bots' in msg[:5] or '.bot ' + nick in msg[:5 + len(nick)]:
|
||||||
notice("I was written to correct your mistakes.")
|
notice("I was written to correct your mistakes.")
|
||||||
if '.source ' + nick in msg:
|
if '.source ' + nick in msg[:8 + len(nick)]:
|
||||||
notice('[Python] https://github.com/sys-fs/seddy')
|
notice('[Python] https://github.com/sys-fs/seddy')
|
||||||
elif is_sed.match(msg):
|
elif is_sed.match(msg):
|
||||||
foo = seddy(msg, history)
|
foo = seddy(msg, history)
|
||||||
|
Loading…
Reference in New Issue
Block a user