Problem With API
Rob4001 opened this issue ยท 3 comments
Code within Main Class implements EndPoint
public void broadcast(String msg) {if (this.circEnabled) {
RelayedMessage rm = circ.newMsg(this, null, "chat");
rm.setField("message", msg.replaceAll("(\u00A7([A-Fa-f0-9])?)", ""));
rm.setField("sender", "iAuction");
rm.setField("realSender", "iAuction");
rm.setField("prefix", "(");
rm.setField("suffix", ")");
rm.post();
}
}
The Endpoint registers and the bot connects
2012-04-12 15:27:32 [INFO] [CraftIRC] Registering endpoint: auction
The messages are sent:
2012-04-12 15:29:59 [INFO] [CraftIRC] -->X: {chat MSG} (sender: iAuction) (message: 60 seconds left to bid!) (source: auction) (prefix: () (target: rt) (realSender: iAuction) (suffix: ))
But no Text is sent to the IRC
2012-04-12 15:30:00 [INFO] 1334241000227 :irc.ultimateminecraft.net 412 CraftIRCbot :No text to send