$ git clone http://tcclient.ion.nu/tc_client.git
commit 684112044f767a89531b4ed189a7af7c846eb144
Author: Alicia <...>
Date: Mon May 25 11:56:49 2015 +0200
modbot: for !badvid, only play the next video if the one we marked as bad was the currently playing video.
diff --git a/ChangeLog b/ChangeLog
index 6893997..9c6999a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ irchack: send passwords by pipe, not argument.
tc_client-gtk: ignore anything after the offset in /mbs commands.
tc_client-gtk: when camming down, remove the glib event source for our cam stream.
tc_client-gtk: send the cam stream to tc_client from the main process instead of from the cam child process to avoid potential overlap of writes.
+modbot: for !badvid, only play the next video if the one we marked as bad was the currently playing video.
0.31:
Fixed the issue where messages would show up on kanji on some platforms (a proper fix instead of the earlier android & apple workaround)
When a message is sent with a privacy field, send it once with 'b' (broadcasting) and once with 'n' (not-broadcasting)
diff --git a/utilities/modbot/modbot.c b/utilities/modbot/modbot.c
index 1b8a9d9..e5705f6 100644
--- a/utilities/modbot/modbot.c
+++ b/utilities/modbot/modbot.c
@@ -598,9 +598,12 @@ int main(int argc, char** argv)
list_add(&badvids, vid);
list_save(&goodvids, "goodvids.txt");
list_save(&badvids, "badvids.txt");
- if(playing && !strcmp(vid, playing)){say(0, "/mbc youTube\n");}
say(pm, "Marked '%s' as bad, it will not be allowed into the queue again. You can reverse this by !approve'ing the video by ID/link/name\n", vid);
- playnext(0);
+ if(playing && !strcmp(vid, playing))
+ {
+ say(0, "/mbc youTube\n");
+ playnext(0);
+ }
}
else if(!strcmp(msg, "!skip") || !strncmp(msg, "!skip ", 6))
{