summary refs log tree commit diff stats
path: root/plugins/ewc
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-30 07:40:37 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-10-30 07:40:37 +0100
commit45d4fa580114e7379a1140fb9944d43ffb9522ae (patch)
treeb3ef37a2d374be07c365babe6ab6521c2d964be7 /plugins/ewc
parenta5ab455b3414226ef03869eab9e7eeb01142a916 (diff)
Rebranding for XCHAT_EAT_*
Diffstat (limited to 'plugins/ewc')
-rw-r--r--plugins/ewc/ewc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/ewc/ewc.c b/plugins/ewc/ewc.c
index d7ae3703..0b4c2af1 100644
--- a/plugins/ewc/ewc.c
+++ b/plugins/ewc/ewc.c
@@ -124,7 +124,7 @@ static int wcmd_cb(char *word[], char *word_eol[], void *userdata)
     }

   }

 

-  return XCHAT_EAT_ALL;

+  return HEXCHAT_EAT_ALL;

 }

 

 

@@ -146,21 +146,21 @@ static int wp_cb(char *word[], char *word_eol[], void *userdata)
 

     if ((samplerate = SendMessage(hwndWinamp, WM_USER, (WPARAM)0, (LPARAM)126)) == 0) {

       xchat_print(ph, "Could not get current song's samplerate... !?\n");

-      return XCHAT_EAT_ALL;

+      return HEXCHAT_EAT_ALL;

     }

     if ((bitrate = SendMessage(hwndWinamp, WM_USER, (WPARAM)1, (LPARAM)126)) == 0) {

       xchat_print(ph, "Could not get current song's bitrate... !?\n");

-      return XCHAT_EAT_ALL;

+      return HEXCHAT_EAT_ALL;

     }

     if ((nbchannels = SendMessage(hwndWinamp, WM_USER, (WPARAM)2, (LPARAM)126)) == 0) {

       xchat_print(ph, "Could not get the number of channels... !?\n");

-      return XCHAT_EAT_ALL;

+      return HEXCHAT_EAT_ALL;

     }

     if ((length = SendMessage(hwndWinamp, WM_USER, (WPARAM)1, (LPARAM)105)) == 0) {

       // Could be buggy when streaming audio or video, returned length is unexpected;

       // How to detect is Winamp is streaming, and display ??:?? in that case?

       xchat_print(ph, "Could not get current song's length... !?\n");

-      return XCHAT_EAT_ALL;

+      return HEXCHAT_EAT_ALL;

     }

     else {

       minutes = length/60;

@@ -173,7 +173,7 @@ static int wp_cb(char *word[], char *word_eol[], void *userdata)
     }

     if ((elapsed = SendMessage(hwndWinamp, WM_USER, (WPARAM)0, (LPARAM)105)) == 0) {

       xchat_print(ph, "Could not get current song's elapsed time... !?\n");

-      return XCHAT_EAT_ALL;

+      return HEXCHAT_EAT_ALL;

     }

     else {

       eminutes = (elapsed/1000)/60;   /* kinda stupid sounding, but e is for elapsed */

@@ -187,7 +187,7 @@ static int wp_cb(char *word[], char *word_eol[], void *userdata)
 

     if ((bitrate = SendMessage(hwndWinamp, WM_USER, (WPARAM)1, (LPARAM)126)) == 0) {

       xchat_print(ph, "Could not get current song's bitrate... !?\n");

-      return XCHAT_EAT_ALL;

+      return HEXCHAT_EAT_ALL;

     }

 

     GetCurrentSongsName(hwndWinamp, this_title, 1024);

@@ -195,7 +195,7 @@ static int wp_cb(char *word[], char *word_eol[], void *userdata)
     xchat_commandf(ph, "dispcurrsong %d %d %d %s %s %s", samplerate, bitrate, nbchannels, elapsedtime, totaltime, this_title);

   }

 

-  return XCHAT_EAT_ALL;   /* eat this command so xchat and other plugins can't process it */

+  return HEXCHAT_EAT_ALL;   /* eat this command so xchat and other plugins can't process it */

 }