mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 05:02:33 +01:00
clientbot: implement outgoing INVITE
This commit is contained in:
parent
a2043d6762
commit
95ee94e747
@ -91,6 +91,10 @@ class ClientbotWrapperProtocol(Protocol):
|
|||||||
self.irc.servers[sid] = IrcServer(uplink, name)
|
self.irc.servers[sid] = IrcServer(uplink, name)
|
||||||
return sid
|
return sid
|
||||||
|
|
||||||
|
def invite(self, client, target, channel):
|
||||||
|
"""Invites a user to a channel."""
|
||||||
|
self.irc.send('INVITE %s %s' % (self.irc.getFriendlyName(target), channel))
|
||||||
|
|
||||||
def join(self, client, channel):
|
def join(self, client, channel):
|
||||||
"""STUB: Joins a user to a channel."""
|
"""STUB: Joins a user to a channel."""
|
||||||
channel = self.irc.toLower(channel)
|
channel = self.irc.toLower(channel)
|
||||||
@ -170,7 +174,7 @@ class ClientbotWrapperProtocol(Protocol):
|
|||||||
def _stub(self, *args):
|
def _stub(self, *args):
|
||||||
"""Stub outgoing command function (does nothing)."""
|
"""Stub outgoing command function (does nothing)."""
|
||||||
return
|
return
|
||||||
away = mode = topic = topicBurst = invite = knock = updateClient = _stub
|
away = mode = topic = topicBurst = knock = updateClient = _stub
|
||||||
|
|
||||||
def handle_events(self, data):
|
def handle_events(self, data):
|
||||||
"""Event handler for the RFC1459/2812 (clientbot) protocol."""
|
"""Event handler for the RFC1459/2812 (clientbot) protocol."""
|
||||||
|
Loading…
Reference in New Issue
Block a user