summary refs log tree commit diff stats
path: root/plugins/mpcinfo
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2012-12-17 16:48:18 -0500
committerTingPing <tingping@tingping.se>2012-12-17 16:48:18 -0500
commitaf9b65ee7807452cce04d94a7f8436dce8e9475f (patch)
tree4989dad408dc2e8d250be92e4b8f794b12d05f4b /plugins/mpcinfo
parentc14f37b9335bb986e7cf738e5d319de4ab0c28e7 (diff)
MPC: don't spam no player running to chat
Diffstat (limited to 'plugins/mpcinfo')
-rw-r--r--plugins/mpcinfo/mpcInfo.c2
-rw-r--r--plugins/mpcinfo/theme.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mpcinfo/mpcInfo.c b/plugins/mpcinfo/mpcInfo.c
index be2fe74f..471b92cf 100644
--- a/plugins/mpcinfo/mpcInfo.c
+++ b/plugins/mpcinfo/mpcInfo.c
@@ -46,7 +46,7 @@ static int mpc_tell(char *word[], char *word_eol[], void *userdata){
        char *tTitle, *zero, *oggLine, *line;
 	   struct tagInfo info;
 	   HWND hwnd = FindWindow("MediaPlayerClassicW",NULL);
-       if (hwnd==0) {hexchat_command(ph, randomLine(notRunTheme));return HEXCHAT_EAT_ALL;}
+       if (hwnd==0) {hexchat_print(ph, randomLine(notRunTheme));return HEXCHAT_EAT_ALL;}
        
        tTitle=(char*)malloc(sizeof(char)*1024);
        GetWindowText(hwnd, tTitle, 1024);
diff --git a/plugins/mpcinfo/theme.c b/plugins/mpcinfo/theme.c
index 0be6e376..2f035592 100644
--- a/plugins/mpcinfo/theme.c
+++ b/plugins/mpcinfo/theme.c
@@ -120,7 +120,7 @@ void loadThemes(){
 		fclose(f);
 		hexchat_print(ph, "theme loaded successfull\n");
 	}
-	if (notRunTheme.size==0) notRunTheme=themeAdd(notRunTheme,"say Media Player Classic not running");
+	if (notRunTheme.size==0) notRunTheme=themeAdd(notRunTheme,"Media Player Classic not running");
 	if (titleTheme.size==0) titleTheme=themeAdd(titleTheme,"say Playing %title in Media Player Classic");
 	if (mp3Theme.size==0) mp3Theme=themeAdd(mp3Theme,"me listens to %art with %tit from %alb [%gen|%br kbps|%frq kHz|%mode] in Media Player Classic ");
 	if (oggTheme.size==0) oggTheme=themeAdd(oggTheme,"me listens to %art with %tit from %alb [%gen|%br kbps|%frq kHz|%chan channels] in Media Player Classic ");