diff --git a/botthread.c b/botthread.c index 43fb725..fe136a9 100644 --- a/botthread.c +++ b/botthread.c @@ -243,6 +243,21 @@ } } + else if (strcasecmp(cmd,"queue") == 0x0) { + tmpChan = findChan(chan); + if (tmpChan == 0x0) + return(0x0); + sprintf(output,"MSG:TUveD:%s:Queue Order - ",userConnection->userInfo.username); + for (tmpUser = tmpChan->users;tmpUser != 0x0;tmpUser = tmpUser->next) { + if (tmpUser == tmpChan->nextUser) + sprintf(output,"%s(%s),",output,tmpUser->user->userInfo.username); + else if (tmpUser == tmpChan->nextUser->next) + sprintf(output,"%s[%s],",output,tmpUser->user->userInfo.username); + else + sprintf(output,"%s%s,",output,tmpUser->user->userInfo.username); + } + sSendData(userConnection,output); + } else if (strcasecmp(cmd,"random") == 0x0) { tmpChan = findChan(chan); if (tmpChan == 0x0)