craftirc / 3 Goto Github PK
View Code? Open in Web Editor NEWCraftIRC3
CraftIRC3
Adding a ticket because I don't feel like fixing this.
Some guy had the channel name with camelcase, but the registered channel name was lowercase. Message delivery worked in one direction (irc to mc) but not the other (mc to irc)
I would have contributed myself but I am not familiar enough with the code to locate and modify all relevant sections.
I suggest deprecating (but not yet removing, for backwards compatibility reasons) the current config option and creating one to specify reply method (channel message, user message, user notice)
The program does not have support for utf-8 encoding in chat. Test it with this alphabet:A, Á, B, C, Cs, D, Dz, Dzs, E, É, F, G, Gy, H, I, Í, J, K, L, Ly, M, N, Ny, O, Ó, Ö, Ő, P, Q, R, S, Sz, T, Ty, U, Ú, Ü, Ű, V, W, X, Y, Z, Zs
I've noticed in your plugin that you can only send colored messages to and from minecraft and irc. I would like if you could integrate bold, italic, underline into "colormap" in the config. So when someone types something bold ingame, it will appear bold on irc.
So for all users on your channel with +v, they have permissions equivalent of the group 'Donator', then for +h you may have that for the Mini-Mods, etc etc. Would this be a possible feature of CraftIRC?
I am testing anti-spam using these settings:
#Prevent flood by setting a delay (in ms) between messages to IRC and a maximum queue size.
message-delay: 1000
queue-size: 3
On a connect IRC channel I pasted this (in one go) in chat:
hi test
hi test
hi test
hi test
hi test
hi test
hi test
All messages were mirrored in-game. Isn't it supposed to only display 3 in this case, or am I missing the purpose of queue-size?
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
Either via config on per-plugin basis or perhaps a separate command? Something to allow people to choose what commands have their output show up in IRC
From BukkitDev user Guardianzozo
Other chat plugins support time to show in game world time.
Can you please add this support in CraftIRC ??
!time displays the time for each world in the server, w/ Minecraftbot.
Obviously CraftIRC the default command would be .time
Code Used:
int i = 0;
while(true){
try{
Minebot bot = craftirc.getBot(i);
if(bot == null){
break;
}
bot.sendMessage(channel, message);
i++;
}catch(ArrayIndexOutOfBoundsException e){
break;
}
}
The AIOOB exception is thrown within the CraftIRC plugin, making it not catchable.
2013-09-13 10:57:32 [WARNING] Unexpected exception while parsing console command "xmail test"
org.bukkit.command.CommandException: Unhandled exception executing command 'xmail' in plugin xMail v1.8.0-SNAPSHOT
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192)
at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:523)
at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchServerCommand(CraftServer.java:512)
at net.minecraft.server.v1_6_R2.DedicatedServer.ar(DedicatedServer.java:262)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:227)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.ensifera.animosity.craftirc.CraftIRC.getBot(CraftIRC.java:825)
at com.turt2live.xmail.compatibility.irc.IrcCraftIRC.sendMessage(IrcCraftIRC.java:31)
at com.turt2live.xmail.commands.command.TestCommand.runArgument(TestCommand.java:34)
at com.turt2live.xmail.commands.XMailCommandHandler.onCommand(XMailCommandHandler.java:155)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 8 more
Edit: Line 31 of IrcCraftIRC
is Minebot bot = craftirc.getBot(i);
Hello, sorry if there is already a config option i did not find.
Is there anyway a feature could be added that allows you to ignore all chat from anyone whos IRC nick does not match a player name that has previously logged into the server?
This feature is in dynmap chat, but i much prefer craftIRC to that.
Thanks in advance.
SMC
You told me to let you know on GitHub issues, so I complied. IRC NOTICEs don't pass to Minecraft chat.
Whenever I used a command in the irc (ex. .c plugins), the bot won't respond back in the IRC Channel but it does preform the command. There was times were it would say nothing and print lines in the IRC channel.
Add a config option to replace all text affected by §k with [REDACTED]
We currently don't get the full modes of an user, so if someone who is +ao gets -a, craftirc thinks it has no other modes. Do a proper sync of modes on join using /who instead.
Also check if we can somehow backport this from pircbotx.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.