summary refs log tree commit diff stats
path: root/src/common/dbus/example.py
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-30 11:35:39 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-10-30 11:35:39 +0100
commita51a69134b8bdc94cfb4dcc1403e33cce24d34bc (patch)
treea257e588c8d13d8d275450b8903c924145e5835f /src/common/dbus/example.py
parent82936df2af3993c2e234042c450e0e9630b045d4 (diff)
Nah, even more rebranding
Diffstat (limited to 'src/common/dbus/example.py')
-rw-r--r--src/common/dbus/example.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/common/dbus/example.py b/src/common/dbus/example.py
index 01156806..49855784 100644
--- a/src/common/dbus/example.py
+++ b/src/common/dbus/example.py
@@ -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)