diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-05-25 05:16:22 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2022-07-26 04:53:20 -0400 |
commit | 1dc57321c1339183ff73a0476d13aea828e70f5f (patch) | |
tree | 7e688e99f6546b60c5ce9417c78444392376f909 | |
parent | e1c3a00ec0108a395f48ee509f67765488893166 (diff) |
wip - housekeepingdevelopment
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | bridgin.c | 8 | ||||
-rwxr-xr-x | install.sh | 2 |
3 files changed, 11 insertions, 3 deletions
@@ -62,7 +62,7 @@ into YOUR_HOME_DIR/.purple/plugins/ or /usr/lib/purple-2/ then restart pidgin if you are running without X or you do not want pidgin to launch automatically use this comand to compile and install only - ./install nolaunch + ./install --no-launch if you do not want the plugin to be automatically installed into your home dir use this comand to compile only @@ -71,7 +71,7 @@ use this comand to compile only ## build instructions for windows -follow [these instructions](https://test.developer.pidgin.im/wiki/BuildingWinPidgin) to build pidgin for windows +follow [these instructions](https://pidgin.im/development/building/2.x.y/windows/) to build pidgin for windows then copy the contents of this repo into PIDGIN_SRC_DIR\libpurple\plugins cd into PIDGIN_SRC_DIR\libpurple\plugins then make and install with: @@ -352,10 +352,18 @@ gboolean handleChat(PurpleAccount* thisAccount , char** sender , char** msg , #if DEBUG_CHAT // NOTE: DBGchat() should mirror changes to logic here DBGchat(thisAccount , *sender , thisConv , *msg , *flags , thisBridgeName) ; #endif +#if DEBUG_VB +purple_debug_misc(PLUGIN_NAME , "handleChat() send=%s recv=%s prefix=%s flags=%x msg=%s\n" , + ( *flags & PURPLE_MESSAGE_SEND ) ? "suppressed" : "passed" , + (!(*flags & PURPLE_MESSAGE_RECV)) ? "suppressed" : "passed" , + (msg[0] == '\\' ) ? "suppressed" : "passed" , + flags , msg ) ; +#endif if (!isBridgeEnabled(thisBridgeName)) return FALSE ; // input channel bridge is disabled if (*flags & PURPLE_MESSAGE_SEND) return FALSE ; // never relay unprefixed local chat if (!(*flags & PURPLE_MESSAGE_RECV)) return FALSE ; // TODO: handle special message types + if (msg[0] == '\') return FALSE ; // ignore messages beginning with: '\' prepareRelayChat(NICK_PREFIX , *sender , *msg) ; relayMessage(thisBridgeName , thisConv) ; chatBufferClear() ; @@ -22,7 +22,7 @@ SUCCESS_MSG="compilation success" FAILURE_MSG="compilation failure" INSTALLING_MSG="installing to $HOME/.purple/plugins/" NO_HOME_MSG='your $HOME environment var is not properly set'" - copy the file '$PLUGIN_OBJ' to YOUR_HOME_DIR/.purple/plugins/ or /usr/lib/purple-2/" -NOLAUNCH="nolaunch" +NOLAUNCH="--no-launch" PIDGIN_BIN=`which pidgin` |