$ git clone https://tcclient.ion.nu/tc_client.git
commit 02bd16ef811f7adef8cffe60c999c4e4df0fb47d
Author: Alicia <...>
Date:   Wed Jun 10 17:02:17 2015 +0200

    modbot: added a !queue <position> command to get information about the video in the given position in the queue.

diff --git a/ChangeLog b/ChangeLog
index 980ed2c..5bfe5f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 Fixed the /forgive command (by name) which would previously fail unless the target was found in the first 'banlist' AMF0 packet.
 Added a /version remote command to give the client name and version number, making /userinfo conform to the flash client's behaviour instead, and send the response with the two separate privacy field options 'n' and 'b'.
 modbot: fixed finding the duration of videos longer than 59 minutes (conversion from hh:mm:ss format to seconds)
+modbot: added a !queue <position> command to get information about the video in the given position in the queue.
 tc_client-gtk: redesigned the startup window to better support frequenting multiple channels.
 tc_client-gtk and camviewer: added compatibility code to build on windows (for now the tc_client core still needs to be built with cygwin for windows)
 tc_client-gtk: made the options for notifications and youtube videos work for windows.
diff --git a/utilities/modbot/commands.html b/utilities/modbot/commands.html
index f71858c..e9ba3cd 100644
--- a/utilities/modbot/commands.html
+++ b/utilities/modbot/commands.html
@@ -13,6 +13,7 @@
     <tr><th>Command</th><th>Description</th></tr>
     <tr><td>!request &lt;link/searchterm&gt;</td><td>request a video to be played</td></tr>
     <tr><td>!queue</td><td>get the number of songs in queue and which (if any) need to  be approved</td></tr>
+    <tr><td>!queue &lt;position&gt;</td><td>get information about the video in the given position in the queue</td></tr>
     <tr><td>!wrongrequest</td><td>undo the last request you made</td></tr>
     <tr><td>!requestedby</td><td>see who requested the current video</td></tr>
     <tr><td>!modstats</td><td>get a percentage of how often there are mods in the channel (aside from modbot)</td></tr>
diff --git a/utilities/modbot/modbot.c b/utilities/modbot/modbot.c
index 7256df1..940af29 100644
--- a/utilities/modbot/modbot.c
+++ b/utilities/modbot/modbot.c
@@ -467,6 +467,12 @@ int main(int argc, char** argv)
             say(pm, "%u video%s in queue\n", queue.itemcount, (queue.itemcount==1)?"":"s");
           }
         }
+        else if(!strncmp(msg, "!queue ", 7))
+        {
+          unsigned int i=atoi(&msg[7]);
+          if(i>=queue.itemcount){say(pm, "%u is beyond the size of the queue\n", i); continue;}
+          say(pm, "%s by %s (%s)\n", queue.items[i].video, queue.items[i].requester, queue.items[i].title);
+        }
         else if(!strcmp(msg, "!requestedby"))
         {
           if(!playing){say(pm, "Nothing is playing\n");}