Mercurial > audlegacy
changeset 2757:6f38159839be trunk
[svn] - clean up command_send(). tips from deitarion.
author | nenolod |
---|---|
date | Fri, 11 May 2007 21:35:06 -0700 |
parents | 987df858ae76 |
children | c888facd2c0d |
files | ChangeLog contrib/xchat-audacious.py src/audacious/build_stamp.c |
diffstat | 3 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri May 11 21:30:39 2007 -0700 +++ b/ChangeLog Fri May 11 21:35:06 2007 -0700 @@ -1,3 +1,11 @@ +2007-05-12 04:30:39 +0000 William Pitcock <nenolod@sacredspiral.co.uk> + revision [4538] + - final version of the /sendtrack command. :( + + trunk/contrib/xchat-audacious.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2007-05-12 04:29:36 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [4536] - try with doublequotes i guess
--- a/contrib/xchat-audacious.py Fri May 11 21:30:39 2007 -0700 +++ b/contrib/xchat-audacious.py Fri May 11 21:35:06 2007 -0700 @@ -6,7 +6,7 @@ # - support org.freedesktop.MediaPlayer (MPRIS)? # # This script is in the public domain. -# $Id: xchat-audacious.py 4538 2007-05-12 04:30:39Z nenolod $ +# $Id: xchat-audacious.py 4540 2007-05-12 04:35:06Z nenolod $ # __module_name__ = "xchat-audacious" @@ -61,7 +61,7 @@ return xchat.EAT_ALL aud = bus.get_object('org.atheme.audacious', '/org/atheme/audacious') - xchat.command("DCC SEND %s \"%s\"" % (word[1], aud.SongFilename(aud.Position()))) + xchat.command('DCC SEND %s "%s"' % (word[1], aud.SongFilename(aud.Position()))) return xchat.EAT_ALL xchat.hook_command("NP", command_np, help="Displays current playing song.") @@ -72,4 +72,4 @@ xchat.hook_command("PLAY", command_play, help="Begins playback.") xchat.hook_command("SENDTRACK", command_send, help="Sends the currently playing track to a user.") -print "xchat-audacious $Id: xchat-audacious.py 4538 2007-05-12 04:30:39Z nenolod $ loaded" +print "xchat-audacious $Id: xchat-audacious.py 4540 2007-05-12 04:35:06Z nenolod $ loaded"