------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 ba951ba554514d3e53a5dbd319dad3d5 ChangeLog 904
+MD5 e47f69b8cff83add69e3bb2c54988367 xchat-xsys-1.9.1-r1.ebuild 854
+MD5 4102cd47e1c2df279bf2fe29cd1d5b89 xchat-xsys-1.9.1.ebuild 687
+MD5 ed54a8e426d9a3116497b8bc634c2118 ChangeLog 1212
MD5 42cef2da59c81f792584c3f9048a1930 metadata.xml 250
-MD5 a5f4dd9b255c8dbe5ab46f6dac13a68e xchat-xsys-1.0.6.ebuild 982
-MD5 e9341f9089bb5c3425f9d9b391c65d8f xchat-xsys-1.9.0.ebuild 690
-MD5 a847f331c64fbf3e3dd1b4cf2fa15c9f xchat-xsys-1.9.1.ebuild 703
-MD5 d17f93776f6856c326d07b3ac7526e14 files/digest-xchat-xsys-1.0.6 62
-MD5 4e2a8543fa153a78874311b727f4dde3 files/digest-xchat-xsys-1.9.0 61
+MD5 f9d3eedf5907d949b6f52bfdbc580bd7 files/digest-xchat-xsys-1.9.1-r1 61
MD5 f9d3eedf5907d949b6f52bfdbc580bd7 files/digest-xchat-xsys-1.9.1 61
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBz3r+ArHZZzCEUG0RAre+AJ4wra0AyASzyvHBQpzVlAgNVtdOIgCfQV+w
-9TM5HRqBYSTd9aPCc04Arn4=
-=aKRg
------END PGP SIGNATURE-----
+MD5 b9c39b3537e8ee29aa9af6c33467223b files/1.9.1-bmp-support.patch 3230
--- /dev/null
+--- parse.c.orig 2005-01-16 10:28:16.271149064 +0000
++++ parse.c 2005-01-16 10:38:13.400371624 +0000
+@@ -28,6 +28,45 @@
+
+ #include "xchat-plugin.h"
+
++int xs_parse_bmp(char *title, char *pos, char *time)
++{
++ char buffer[1024], *position;
++ FILE *fp = fopen("/tmp/xmms-info", "r");
++ if(fp == NULL)
++ return 1;
++
++ while(fgets(buffer, 1024, fp) != NULL)
++ {
++ if(strstr(buffer, "Position") != NULL && pos != NULL)
++ {
++ position = strstr(buffer, ":");
++ position += 2;
++ strcpy(pos, position);
++ position = strstr(pos, "\n");
++ *(position) = '\0';
++ }
++ else if(strstr(buffer, "Time") != NULL && time != NULL)
++ {
++ position = strstr(buffer, ":");
++ position += 2;
++ strcpy(time, position);
++ position = strstr(time, "\n");
++ *(position) = '\0';
++ }
++ else if(strstr(buffer, "Title") != NULL && title != NULL)
++ {
++ position = strstr(buffer, ":");
++ position += 2;
++ strcpy(title, position);
++ position = strstr(title, "\n");
++ *(position) = '\0';
++ }
++ }
++ fclose(fp);
++
++ return 0;
++}
++
+ int xs_parse_cpu(char *model, char *vendor, double *freq, char *cache, unsigned int *count)
+ {
+ char buffer[1024], *position;
+--- parse.h.orig 2005-01-16 10:36:30.070080216 +0000
++++ parse.h 2005-01-16 10:36:48.007353336 +0000
+@@ -22,6 +22,7 @@
+ #ifndef _PARSE_H_
+ #define _PARSE_H_
+
++int xs_parse_bmp(char *title, char *pos, char *time);
+ int xs_parse_cpu(char *model, char *vendor, double *freq, char *cache, unsigned int *count);
+ int xs_parse_uptime(int *weeks, int *days, int *hours, int *minutes, int *seconds);
+ int xs_parse_os(char *user, char *host, char *kernel);
+--- xsys.c.orig 2005-01-16 10:38:50.338756136 +0000
++++ xsys.c 2005-01-16 10:49:31.290316688 +0000
+@@ -46,6 +46,7 @@
+ static int disk_cb (char *word[], char *word_eol[], void *userdata);
+ static int mem_cb (char *word[], char *word_eol[], void *userdata);
+ static int video_cb (char *word[], char *word_eol[], void *userdata);
++static int bmp_cb (char *word[], char *word_eol[], void *userdata);
+
+ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name,
+ char **plugin_desc, char **plugin_version, char *arg)
+@@ -80,6 +81,8 @@
+ xchat_hook_command(ph, "EMEMINFO", XCHAT_PRI_NORM, mem_cb, NULL, (void *) 1);
+ xchat_hook_command(ph, "VIDEO", XCHAT_PRI_NORM, video_cb, NULL, (void *) 0);
+ xchat_hook_command(ph, "EVIDEO", XCHAT_PRI_NORM, video_cb, NULL, (void *) 1);
++ xchat_hook_command(ph, "BMP", XCHAT_PRI_NORM, bmp_cb, NULL, (void *) 0);
++ xchat_hook_command(ph, "EBMP", XCHAT_PRI_NORM, bmp_cb, NULL, (void *) 1);
+
+ load_format();
+ xchat_printf(ph, "X-Sys 2 Loaded Succesfully");
+@@ -580,3 +583,22 @@
+ return XCHAT_EAT_ALL;
+ }
+
++static int bmp_cb(char *word[], char *word_eol[], void *userdata)
++{
++ char buffer[1024], time[16], pos[16], title[256];
++ if(xs_parse_bmp(title, pos, time) != 0)
++ {
++ xchat_printf(ph, "BMP/XMMS is not running");
++ return XCHAT_EAT_NONE;
++ }
++
++ snprintf(buffer, 1024, "%s (%s/%s)", title, pos, time);
++
++ format_output("bmp_playing", buffer);
++ if((int)userdata)
++ xchat_printf(ph, "%s", buffer);
++ else
++ xchat_commandf(ph, "say %s", buffer);
++
++ return XCHAT_EAT_ALL;
++}