diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 07:40:37 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 07:40:37 +0100 |
commit | 45d4fa580114e7379a1140fb9944d43ffb9522ae (patch) | |
tree | b3ef37a2d374be07c365babe6ab6521c2d964be7 /plugins/wmpa | |
parent | a5ab455b3414226ef03869eab9e7eeb01142a916 (diff) |
Rebranding for XCHAT_EAT_*
Diffstat (limited to 'plugins/wmpa')
-rw-r--r-- | plugins/wmpa/hexchat-plugin.cpp | 28 | ||||
-rw-r--r-- | plugins/wmpa/hexchat-plugin.h | 8 |
2 files changed, 18 insertions, 18 deletions
diff --git a/plugins/wmpa/hexchat-plugin.cpp b/plugins/wmpa/hexchat-plugin.cpp index dcf82965..38f6456c 100644 --- a/plugins/wmpa/hexchat-plugin.cpp +++ b/plugins/wmpa/hexchat-plugin.cpp @@ -146,7 +146,7 @@ int wmpaAuto(char *word[], char *word_eol[], void *user_data) char *state; pDialog = GetWMPADialog(); - if (pDialog == NULL) return(XCHAT_EAT_ALL); + if (pDialog == NULL) return(HEXCHAT_EAT_ALL); if (CString(word[2]).IsEmpty()) { if (pDialog->autoAnnounce) { @@ -169,7 +169,7 @@ int wmpaAuto(char *word[], char *word_eol[], void *user_data) xchat_printf(ph, "WMPA: auto is %s", state); - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -179,7 +179,7 @@ int wmpaCurr(char *word[], char *word_eol[], void *user_data) { xchat_printf(ph, "WMPA: Playing %s", (LPCTSTR) wmpaGetSongTitle()); - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -243,7 +243,7 @@ int wmpaFind(char *word[], char *word_eol[], void *user_data) } - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -289,7 +289,7 @@ int wmpaList(char *word[], char *word_eol[], void *user_data) } - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -301,7 +301,7 @@ int wmpaNext(char *word[], char *word_eol[], void *user_data) wmp->GetControls().next(); xchat_printf(ph, "WMPA: Playing %s", (LPCTSTR) wmpaGetSongTitle()); } - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -313,7 +313,7 @@ int wmpaPlay(char *word[], char *word_eol[], void *user_data) wmp->GetControls().play(); xchat_printf(ph, "WMPA: Playing %s", (LPCTSTR) wmpaGetSongTitle()); } - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -325,7 +325,7 @@ int wmpaPause(char *word[], char *word_eol[], void *user_data) wmp->GetControls().pause(); xchat_printf(ph, "WMPA: Pausing %s", (LPCTSTR) wmpaGetSongTitle()); } - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -337,7 +337,7 @@ int wmpaPrev(char *word[], char *word_eol[], void *user_data) wmp->GetControls().previous(); xchat_printf(ph, "WMPA: Playing %s", (LPCTSTR) wmpaGetSongTitle()); } - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -349,7 +349,7 @@ int wmpaSong(char *word[], char *word_eol[], void *user_data) xchat_commandf(ph, "me is playing %s", (LPCTSTR) songTitle); - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -361,7 +361,7 @@ int wmpaStop(char *word[], char *word_eol[], void *user_data) wmp->GetControls().stop(); xchat_printf(ph, "WMPA: Stopping %s", (LPCTSTR) wmpaGetSongTitle()); } - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -374,7 +374,7 @@ int wmpaHelp(char *word[], char *word_eol[], void *user_data) wmpaCommands(); xchat_printf(ph, "\n"); - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -399,7 +399,7 @@ int wmpaVolume(char *word[], char *word_eol[], void *user_data) xchat_printf(ph, "WMPA: volume is %d", volume); - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } /****************************************************************** @@ -472,7 +472,7 @@ CString wmpaGetSongTitle(void) CWMPMedia media = wmp->GetCurrentMedia(); if (media == NULL) { xchat_printf(ph, "WMPA: Could not get current media"); - return(XCHAT_EAT_ALL); + return(HEXCHAT_EAT_ALL); } CString artist = media.getItemInfo("Artist"); diff --git a/plugins/wmpa/hexchat-plugin.h b/plugins/wmpa/hexchat-plugin.h index fb398b3a..bb6b89ce 100644 --- a/plugins/wmpa/hexchat-plugin.h +++ b/plugins/wmpa/hexchat-plugin.h @@ -20,10 +20,10 @@ #define HEXCHAT_FD_EXCEPTION 4 #define HEXCHAT_FD_NOTSOCKET 8 -#define XCHAT_EAT_NONE 0 /* pass it on through! */ -#define XCHAT_EAT_XCHAT 1 /* don't let xchat see this event */ -#define XCHAT_EAT_PLUGIN 2 /* don't let other plugins see this event */ -#define XCHAT_EAT_ALL (XCHAT_EAT_XCHAT|XCHAT_EAT_PLUGIN) /* don't let anything see this event */ +#define HEXCHAT_EAT_NONE 0 /* pass it on through! */ +#define HEXCHAT_EAT_XCHAT 1 /* don't let xchat see this event */ +#define HEXCHAT_EAT_PLUGIN 2 /* don't let other plugins see this event */ +#define HEXCHAT_EAT_ALL (HEXCHAT_EAT_XCHAT|HEXCHAT_EAT_PLUGIN) /* don't let anything see this event */ #ifdef __cplusplus extern "C" { |