Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
🔧 clientinfo bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
VocalZero committed Oct 28, 2020
1 parent b283d85 commit d4f7d00
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ public boolean handleChatCommands(String msg, HashMap<String, String> eventInfo,
public void handleTS3Events(String eventType, HashMap<String, String> eventInfo) {
if(eventType.equalsIgnoreCase("notifyclientmoved")) {
if(Integer.valueOf(eventInfo.get("ctid")) == this.channel_creator) {
HashMap<String, String> commandResponse = this.queryLib.doCommand(MessageFormat.format("clientinfo clid={0}", Integer.valueOf(eventInfo.get("clid"))));
HashMap<String, String> clientInfo = getTS3Reponse(commandResponse.get("response").split(" "));
HashMap<String, String> clientInfo = this.modClass.getClientListEntry(Integer.valueOf(eventInfo.get("clid")));
if(this.getChannelManager().getChannel(this.queryLib.decodeTS3String(clientInfo.get("client_unique_identifier"))).getChannelId() != 0) {
Channel channel = this.getChannelManager().getChannel(this.queryLib.decodeTS3String(clientInfo.get("client_unique_identifier")));
HashMap<String, String> channelReponse = this.queryLib.doCommand(MessageFormat.format("channelinfo cid={0}", channel.getChannelId()));
Expand Down

0 comments on commit d4f7d00

Please sign in to comment.