mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-25 18:32:15 -05:00
PircBot Patch: Parse nicknames without host part (bugfix for irssi proxy)
This commit is contained in:
parent
f6a518462c
commit
8c5258710f
@ -916,6 +916,12 @@ public abstract class PircBot implements ReplyConstants {
|
||||
sourceNick = senderInfo;
|
||||
target = token;
|
||||
|
||||
// XXX: PircBot Patch - Sometimes there are senderinfos with an ident but no host
|
||||
if (sourceNick.contains("!") && !sourceNick.contains("@")) {
|
||||
String[] chunks = sourceNick.split("!");
|
||||
sourceNick = chunks[0]; // Use the part before the exclamation mark
|
||||
}
|
||||
|
||||
// XXX: PircBot Patch - (Needed for BIP IRC Proxy)
|
||||
// If this is a NICK command, use next token as target
|
||||
if (command.equalsIgnoreCase("nick")) {
|
||||
|
Loading…
Reference in New Issue
Block a user