本文整理匯總了Python中channel.Channel.burst_client方法的典型用法代碼示例。如果您正苦於以下問題:Python Channel.burst_client方法的具體用法?Python Channel.burst_client怎麽用?Python Channel.burst_client使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類channel.Channel
的用法示例。
在下文中一共展示了Channel.burst_client方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: go
# 需要導入模塊: from channel import Channel [as 別名]
# 或者: from channel.Channel import burst_client [as 別名]
def go(self, line):
client = line.source
channel = line.args[0]
new = False
if channel in self.parent.channels:
channel = self.parent.channels[line.args[0]]
else: # New channel
channel = Channel(line.args[0], client)
print "making new channel", line.args[0]
self.parent.channels[channel.name] = channel
new = True
if channel.check_banned(client):
client.send_line_from_server("YOUREBANNED %s :Banned from %s (%s)" %\
(channel.name, channel.name, "Ban set on you :("))
return
for uid, member in channel.clients.iteritems():
if not client.orthogonal(member.client) and member.client.local:
member.client.send_line_from_server(client.gen_CLIENT())
channel.add_member(client)
channel.burst_client(client)
if new:
channel.clients[client.uid].status = CHFL_CHANOP
channel.properties = PROP_INTERNAL | PROP_TOPICREST
for server in self.parent.serverlinks:
channel.burst_TS6(server)
else:
channel.sendto_members(":%s JOIN %s" %\
(client.uid, channel.name), local=True)
self.parent.sendto_servers(":%s JOIN %s %s +" %\
(client.uid, channel.ts, channel.name))