#include "match.h"
#include "messages.h"
#include "parse.h"
+#include "tool.h"
#include "exp.h"
#include "irc.h"
/* handle msgtarget = msgto *("," msgto) */
currentTarget = strtok_r(currentTarget, ",", &lastCurrentTarget);
+ ngt_UpperStr(Req->command);
while (currentTarget) {
/* Check for and handle valid <msgto> of form:
return DISCONNECTED;
} else if ((chan = Channel_Search(currentTarget))) {
/* channel */
- if (!Channel_Write(chan, from, Client, Req->argv[1]))
- return DISCONNECTED;
+ if (!Channel_Write(chan, from, Client, Req->command,
+ SendErrors, Req->argv[1]))
+ return DISCONNECTED;
} else {
if (!SendErrors)
return CONNECTED;