From af9b65ee7807452cce04d94a7f8436dce8e9475f Mon Sep 17 00:00:00 2001 From: TingPing Date: Mon, 17 Dec 2012 16:48:18 -0500 Subject: MPC: don't spam no player running to chat --- plugins/mpcinfo/mpcInfo.c | 2 +- plugins/mpcinfo/theme.c | 2 +- 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 "); -- cgit 1.4.1