{"action":"created","issue":{"url":"https://api.github.com/repos/cnaude/PurpleIRC-spigot/issues/13","repository_url":"https://api.github.com/repos/cnaude/PurpleIRC-spigot","labels_url":"https://api.github.com/repos/cnaude/PurpleIRC-spigot/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/cnaude/PurpleIRC-spigot/issues/13/comments","events_url":"https://api.github.com/repos/cnaude/PurpleIRC-spigot/issues/13/events","html_url":"https://github.com/cnaude/PurpleIRC-spigot/issues/13","id":136899052,"number":13,"title":"VentureChat: IngameChat to IRC by ChannelAlias","user":{"login":"Belegalgar","id":10850387,"avatar_url":"https://avatars.githubusercontent.com/u/10850387?v=3","gravatar_id":"","url":"https://api.github.com/users/Belegalgar","html_url":"https://github.com/Belegalgar","followers_url":"https://api.github.com/users/Belegalgar/followers","following_url":"https://api.github.com/users/Belegalgar/following{/other_user}","gists_url":"https://api.github.com/users/Belegalgar/gists{/gist_id}","starred_url":"https://api.github.com/users/Belegalgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Belegalgar/subscriptions","organizations_url":"https://api.github.com/users/Belegalgar/orgs","repos_url":"https://api.github.com/users/Belegalgar/repos","events_url":"https://api.github.com/users/Belegalgar/events{/privacy}","received_events_url":"https://api.github.com/users/Belegalgar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cnaude","id":1440367,"avatar_url":"https://avatars.githubusercontent.com/u/1440367?v=3","gravatar_id":"","url":"https://api.github.com/users/cnaude","html_url":"https://github.com/cnaude","followers_url":"https://api.github.com/users/cnaude/followers","following_url":"https://api.github.com/users/cnaude/following{/other_user}","gists_url":"https://api.github.com/users/cnaude/gists{/gist_id}","starred_url":"https://api.github.com/users/cnaude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnaude/subscriptions","organizations_url":"https://api.github.com/users/cnaude/orgs","repos_url":"https://api.github.com/users/cnaude/repos","events_url":"https://api.github.com/users/cnaude/events{/privacy}","received_events_url":"https://api.github.com/users/cnaude/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-02-27T09:04:45Z","updated_at":"2016-02-28T02:44:16Z","closed_at":null,"body":"Greetings,\r\n\r\nI'm using PurpleIRC version 1.0-182\r\n\r\nOn our Server we are using VentureChat.\r\n\r\nCurrently PurpleIRC does something wrong when determine the VentueChat Channel the InGame Player wants to Message.\r\n\r\nExample:\r\n\r\nDefine two VentureChat Channels:\r\n\r\n1)\r\nLocal\r\nInGame Command alias: /l\r\n(displays in white color, text in this channel should not go to IRC)\r\n\r\n2)\r\nGlobal\r\nInGame Command alias: /e\r\n(displays in yellow color, text in this channel should go to IRC)\r\n\r\nOut Bot is configured to listen (and respond) only Global VentureChat channel.\r\n\r\nInGame, if i explicitly join our Global VentureChat Channel by /ch Global or just /e and just start chatting ingame everything works just fine.\r\nBut as soon as i'm using an Channel-Alias to directly chat to another VentureChat channel PurpleIRC doesn't honor this.\r\n\r\nExample:\r\nOn connect to minecraft i'm in Local Channel by default. If i just chat nothing goes to IRC -> OK\r\nNow i switch over to Global chat by InGame Command /e\r\nIf i chat all Text goes to IRC -> OK\r\nSwitching back to Local channel by /l\r\nNo chat goes to IRC -> OK\r\nNow i want to send text to Global Channel without explicitly joining this channel - this is possible by using the channel-alias together with the Text:\r\n/e Testtext\r\nOn Minecraft my \"Testtext\" is send to my Global VentureChat Channel.\r\nOn IRC no text is send. -> WRONG\r\nSwitching back to Global Channel: /e\r\nAll chat goes to IRC -> OK\r\nChat explicitly send to Local Channel (/l Testtext) also goes to IRC -> WRONG\r\n\r\nPurpleIRC honors color-codes from the different Channels, so text from Local VentureChat goes in white color to IRC and from Global Color in yellow.\r\n\r\nHere is an example debug output whith some explanations:\r\n```\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] ChatFormat [false]: §cBelegalgar§f:§f text in local VC, doesn't go to IRC -> OK\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] Player Belegalgar has permission irc.message.gamechat\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] No Factions\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] VC Channel: Local\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Local-chat:false\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-chat:false\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] Player Belegalgar is in VentureChat channel Local. Message types venture-Local-chat and venture-chat are disabled. No message sent to IRC.\r\n[09:49:17 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:game-chat:false\r\n[09:49:17 INFO]: Belegalgar: text in local VC, doesn't go to IRC -> OK\r\n\r\n[09:49:29 INFO]: Belegalgar issued server command: /e\r\n[09:51:02 INFO]: [PurpleIRC] [DEBUG] ChatFormat [false]: §cBelegalgar§e:§e after switching to Global VC by /e, text in global, goes to IRC -> OK\r\n[09:51:02 INFO]: [PurpleIRC] [DEBUG] Player Belegalgar has permission irc.message.gamechat\r\n[09:51:02 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:51:02 INFO]: [PurpleIRC] [DEBUG] No Factions\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] VC Channel: Global\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Global-chat:true\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HC1 => Global\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HC3 => Global\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HT => Help\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HT => Trade\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HT => Staff\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HT => Global\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HT => Admin\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HT => Global\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HT => Network\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HT => Donator\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HT => Local\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] HC4 => Global\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] VC Template: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] Tokenizing Belegalgar(O: true)\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] getPlayerGroup: Belegalgar\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] getWorldAlias: worldName => world\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] getWorldAlias: alias => world\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] getWorldColor: worldName => world\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] getWorldColor: color => §f\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] [P]Raw message: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] Entering aysncIRCMessage\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:game-chat:false\r\n[09:51:03 INFO]: Belegalgar: after switching to Global VC by /e, text in global, goes to IRC -> OK\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] [0]: queueAndSend message detected\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] About to send IRC message to #Global: 04Belegalgar08: 08 after switching to Global VC by /e, text in global, goes to IRC -> OK\r\n[09:51:03 INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] Message sent to #Global: 04Belegalgar08: 08 after switching to Global VC by /e, text in global, goes to IRC -> OK\r\n\r\n[09:51:59 INFO]: Belegalgar issued server command: /l\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] ChatFormat [false]: §cBelegalgar§f:§f after switching back to Local VC by /l, text in local, soesn't go to IRC -> OK\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] Player Belegalgar has permission irc.message.gamechat\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] No Factions\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] VC Channel: Local\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Local-chat:false\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-chat:false\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] Player Belegalgar is in VentureChat channel Local. Message types venture-Local-chat and venture-chat are disabled. No message sent to IRC.\r\n[09:52:32 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:game-chat:false\r\n[09:52:32 INFO]: Belegalgar: after switching back to Local VC by /l, text in local, soesn't go to IRC -> OK\r\n\r\n[09:53:57 INFO]: Belegalgar issued server command: /e explicitly send text to VC Global by /e TEXT, doesn't go to IRC -> WRONG\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] ChatFormat [false]: §cBelegalgar§e:§e explicitly send text to VC Global by /e TEXT, doesn't go to IRC -> WRONG\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] Player Belegalgar has permission irc.message.gamechat\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] No Factions\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] VC Channel: Local\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Local-chat:false\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-chat:false\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] Player Belegalgar is in VentureChat channel Local. Message types venture-Local-chat and venture-chat are disabled. No message sent to IRC.\r\n[09:53:57 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:game-chat:false\r\n[09:53:57 INFO]: Belegalgar: explicitly send text to VC Global by /e TEXT, doesn't go to IRC -> WRONG\r\n\r\n[09:55:00 INFO]: Belegalgar issued server command: /e\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] ChatFormat [false]: §cBelegalgar§e:§e after switching back to Global VC by /e, text in global, goes to IRC -> OK\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] Player Belegalgar has permission irc.message.gamechat\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] No Factions\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] VC Channel: Global\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Global-chat:true\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HC1 => Global\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HC3 => Global\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HT => Help\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HT => Trade\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HT => Staff\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HT => Global\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HT => Admin\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HT => Global\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HT => Network\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HT => Donator\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HT => Local\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] HC4 => Global\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] VC Template: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] Tokenizing Belegalgar(O: true)\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] getPlayerGroup: Belegalgar\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] getWorldAlias: worldName => world\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] getWorldAlias: alias => world\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] getWorldColor: worldName => world\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] getWorldColor: color => §f\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] [P]Raw message: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] Entering aysncIRCMessage\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:game-chat:false\r\n[09:55:20 INFO]: Belegalgar: after switching back to Global VC by /e, text in global, goes to IRC -> OK\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] [0]: queueAndSend message detected\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] About to send IRC message to #Global: 04Belegalgar08: 08 after switching back to Global VC by /e, text in global, goes to IRC -> OK\r\n[09:55:20 INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] Message sent to #Global: 04Belegalgar08: 08 after switching back to Global VC by /e, text in global, goes to IRC -> OK\r\n\r\n[09:57:12 INFO]: Belegalgar issued server command: /l explicitly send text to VC local by /l TEXT, goes to IRC -> WRONG\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] ChatFormat [false]: §cBelegalgar§f:§f explicitly send text to VC local by /l TEXT, goes to IRC -> WRONG\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] Player Belegalgar has permission irc.message.gamechat\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] No Factions\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] VC Channel: Global\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Global-chat:true\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HC1 => Global\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HC3 => Global\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HT => Help\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HT => Trade\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HT => Staff\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HT => Global\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HT => Admin\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HT => Global\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HT => Network\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HT => Donator\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HT => Local\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] HC4 => Global\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] VC Template: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] Tokenizing Belegalgar(O: true)\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] getPlayerGroup: Belegalgar\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] getWorldAlias: worldName => world\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] getWorldAlias: alias => world\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] getWorldColor: worldName => world\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] getWorldColor: color => §f\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] [P]Raw message: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] Entering aysncIRCMessage\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:game-chat:false\r\n[09:57:12 INFO]: Belegalgar: explicitly send text to VC local by /l TEXT, goes to IRC -> WRONG\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] [0]: queueAndSend message detected\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] About to send IRC message to #Global: 04Belegalgar08: 00 explicitly send text to VC local by /l TEXT, goes to IRC -> WRONG\r\n[09:57:12 INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] Message sent to #Global: 04Belegalgar08: 00 explicitly send text to VC local by /l TEXT, goes to IRC -> WRONG\r\n```"},"comment":{"url":"https://api.github.com/repos/cnaude/PurpleIRC-spigot/issues/comments/189767523","html_url":"https://github.com/cnaude/PurpleIRC-spigot/issues/13#issuecomment-189767523","issue_url":"https://api.github.com/repos/cnaude/PurpleIRC-spigot/issues/13","id":189767523,"user":{"login":"cnaude","id":1440367,"avatar_url":"https://avatars.githubusercontent.com/u/1440367?v=3","gravatar_id":"","url":"https://api.github.com/users/cnaude","html_url":"https://github.com/cnaude","followers_url":"https://api.github.com/users/cnaude/followers","following_url":"https://api.github.com/users/cnaude/following{/other_user}","gists_url":"https://api.github.com/users/cnaude/gists{/gist_id}","starred_url":"https://api.github.com/users/cnaude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnaude/subscriptions","organizations_url":"https://api.github.com/users/cnaude/orgs","repos_url":"https://api.github.com/users/cnaude/repos","events_url":"https://api.github.com/users/cnaude/events{/privacy}","received_events_url":"https://api.github.com/users/cnaude/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T02:44:16Z","updated_at":"2016-02-28T02:44:16Z","body":"Please try latest dev build: https://h.cnaude.org/jenkins/job/PurpleIRC-spigot/183/"}}