mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 16:50:19 +00:00
Nah, even more rebranding
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* dbus-client.c - XChat command-line options for D-Bus
|
||||
/* dbus-client.c - HexChat command-line options for D-Bus
|
||||
* Copyright (C) 2006 Claessens Xavier
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* dbus-client.h - XChat command-line options for D-Bus
|
||||
/* dbus-client.h - HexChat command-line options for D-Bus
|
||||
* Copyright (C) 2006 Claessens Xavier
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
* xclaesse@gmail.com
|
||||
*/
|
||||
|
||||
#ifndef XCHAT_DBUS_PLUGIN_H
|
||||
#define XCHAT_DBUS_PLUGIN_H
|
||||
#ifndef HEXCHAT_DBUS_PLUGIN_H
|
||||
#define HEXCHAT_DBUS_PLUGIN_H
|
||||
|
||||
int dbus_plugin_init (hexchat_plugin *plugin_handle,
|
||||
char **plugin_name,
|
||||
|
||||
@@ -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