mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
parent
9e7d0a50ca
commit
c68c941c1d
@ -496,7 +496,11 @@ class Irc():
|
|||||||
def msg(self, target, text, notice=False, source=None):
|
def msg(self, target, text, notice=False, source=None):
|
||||||
"""Handy function to send messages/notices to clients. Source
|
"""Handy function to send messages/notices to clients. Source
|
||||||
is optional, and defaults to the main PyLink client if not specified."""
|
is optional, and defaults to the main PyLink client if not specified."""
|
||||||
|
if not text:
|
||||||
|
return
|
||||||
|
|
||||||
source = source or self.pseudoclient.uid
|
source = source or self.pseudoclient.uid
|
||||||
|
|
||||||
if notice:
|
if notice:
|
||||||
self.proto.notice(source, target, text)
|
self.proto.notice(source, target, text)
|
||||||
cmd = 'PYLINK_SELF_NOTICE'
|
cmd = 'PYLINK_SELF_NOTICE'
|
||||||
|
Loading…
Reference in New Issue
Block a user