mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-11 16:20:20 +00:00
Nah, even more rebranding
This commit is contained in:
@@ -10,19 +10,19 @@ path = remote.Connect ("example.py",
|
||||
"Example of a D-Bus client written in python",
|
||||
"1.0")
|
||||
proxy = bus.get_object('org.hexchat.service', path)
|
||||
xchat = dbus.Interface(proxy, 'org.hexchat.plugin')
|
||||
hexchat = dbus.Interface(proxy, 'org.hexchat.plugin')
|
||||
|
||||
channels = xchat.ListGet ("channels")
|
||||
while xchat.ListNext (channels):
|
||||
name = xchat.ListStr (channels, "channel")
|
||||
channels = hexchat.ListGet ("channels")
|
||||
while hexchat.ListNext (channels):
|
||||
name = hexchat.ListStr (channels, "channel")
|
||||
print "------- " + name + " -------"
|
||||
xchat.SetContext (xchat.ListInt (channels, "context"))
|
||||
xchat.EmitPrint ("Channel Message", ["John", "Hi there", "@"])
|
||||
users = xchat.ListGet ("users")
|
||||
while xchat.ListNext (users):
|
||||
print "Nick: " + xchat.ListStr (users, "nick")
|
||||
xchat.ListFree (users)
|
||||
xchat.ListFree (channels)
|
||||
hexchat.SetContext (hexchat.ListInt (channels, "context"))
|
||||
hexchat.EmitPrint ("Channel Message", ["John", "Hi there", "@"])
|
||||
users = hexchat.ListGet ("users")
|
||||
while hexchat.ListNext (users):
|
||||
print "Nick: " + hexchat.ListStr (users, "nick")
|
||||
hexchat.ListFree (users)
|
||||
hexchat.ListFree (channels)
|
||||
|
||||
print xchat.Strip ("\00312Blue\003 \002Bold!\002", -1, 1|2)
|
||||
print hexchat.Strip ("\00312Blue\003 \002Bold!\002", -1, 1|2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user