PurpleIRC-spigot
PurpleIRC-spigot copied to clipboard
Message is send multiple times to IRC using one bot with two Channels
Greetings,
I'm using PurpleIRC version 1.0-183.
Just discovered another issue, maybe according to VentureChat.
PurpleIRC will send InGame Chat to IRC twice if one bot is listening to two channels (with different VentureChat Channels set).
Maybe chat is send three times if you setup three channels, havn't tried yet...
Setup:
Only ONE botfile, with TWO channels defined:
1st channel: #Team (VentureChat Channel: Team, alias: /t)
enabled-messages:
- irc-venture-chat
- venture-Team-chat
venture-channel: Team
2nd channel: #Global (VentureChat Channel: Global, alias: /e)
enabled-messages:
- irc-pchat
- irc-venture-chat
- venture-Global-chat
venture-channel: Global
Now if i start chatting ingame text is send twice to IRC.
If i'm using two bots with only one channel each everything works like it shoud.
Debug output:
[11:17:25] [Server thread/INFO]: Belegalgar issued server command: /t test
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] ChatFormat [false]: [§fworld§f]<%1$s> %2$s
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] Player Belegalgar has permission irc.message.gamechat
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] No Factions
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Channel: Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Team:venture-Team-chat:true
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC1 => Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC3 => Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Help
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Trade
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Staff
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Global
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Admin
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Global
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Network
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Donator
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Local
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC4 => Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Template: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§b: %MESSAGE%
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] Tokenizing Belegalgar(O: true)
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getPlayerGroup: Belegalgar
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldAlias: worldName => world
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldAlias: alias => world
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldColor: worldName => world
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldColor: color => §f
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [P]Raw message: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§b: %MESSAGE%
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] Entering aysncIRCMessage
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Channel: Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Team-chat:false
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-chat:false
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] Player Belegalgar is in VentureChat channel Team. Message types venture-Team-chat and venture-chat are disabled. No message sent to IRC.
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Team:game-chat:false
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] No Factions
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Channel: Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Team:venture-Team-chat:true
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC1 => Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC3 => Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Help
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Trade
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Staff
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Global
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Admin
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Global
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Network
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Donator
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Local
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC4 => Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Template: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§b: %MESSAGE%
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] Tokenizing Belegalgar(O: true)
[11:17:25] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [0]: queueAndSend message detected
[11:17:25] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] About to send IRC message to #Team: Belegalgar11: test
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getPlayerGroup: Belegalgar
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldAlias: worldName => world
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldAlias: alias => world
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldColor: worldName => world
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldColor: color => §f
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [P]Raw message: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§b: %MESSAGE%
[11:17:25] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] Message sent to #Team: Belegalgar11: test
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] Entering aysncIRCMessage
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Channel: Team
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Team-chat:false
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-chat:false
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] Player Belegalgar is in VentureChat channel Team. Message types venture-Team-chat and venture-chat are disabled. No message sent to IRC.
[11:17:25] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:game-chat:false
[11:17:25] [Server thread/INFO]: [0;37;1m[[0;32;1mTeam[0;37;1m] Belegalgar [0;36;1m:[0;36;1m test[m
[11:17:25] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [0]: queueAndSend message detected
[11:17:25] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] About to send IRC message to #Team: Belegalgar11: test
[11:17:26] [Craft Scheduler Thread - 1/INFO]: [PurpleIRC] [DEBUG] getPlayerHost[3ms] 188.174.99.45 = ppp-188-174-99-45.dynamic.mnet-online.de
[11:17:26] [Craft Scheduler Thread - 11/INFO]: [PurpleIRC] [DEBUG] getPlayerHost[0ms] 188.174.99.45 = ppp-188-174-99-45.dynamic.mnet-online.de
[11:17:26] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] Message sent to #Team: Belegalgar11: test
[11:17:30] [Server thread/INFO]: Belegalgar issued server command: /e Test
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] ChatFormat [false]: [§fworld§f]<%1$s> %2$s
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] Player Belegalgar has permission irc.message.gamechat
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] No Factions
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Channel: Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Team:venture-Global-chat:false
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Team:venture-chat:false
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] Player Belegalgar is in VentureChat channel Global. Message types venture-Global-chat and venture-chat are disabled. No message sent to IRC.
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Channel: Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Global-chat:true
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC1 => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC3 => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Help
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Trade
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Staff
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Admin
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Team
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Network
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Donator
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Local
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC4 => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Template: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] Tokenizing Belegalgar(O: true)
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getPlayerGroup: Belegalgar
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldAlias: worldName => world
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldAlias: alias => world
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldColor: worldName => world
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldColor: color => §f
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [P]Raw message: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] Entering aysncIRCMessage
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Team:game-chat:false
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] No Factions
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Channel: Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Team:venture-Global-chat:false
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Team:venture-chat:false
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] Player Belegalgar is in VentureChat channel Global. Message types venture-Global-chat and venture-chat are disabled. No message sent to IRC.
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isPlayerInValidWorld] [p: Belegalgar] [w: world] [b: true]
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Channel: Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:venture-Global-chat:true
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC1 => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC3 => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Help
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Trade
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Staff
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Admin
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Team
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Network
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Donator
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HT => Local
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] HC4 => Global
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] VC Template: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] Tokenizing Belegalgar(O: true)
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getPlayerGroup: Belegalgar
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldAlias: worldName => world
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldAlias: alias => world
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldColor: worldName => world
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] getWorldColor: color => §f
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [P]Raw message: %PLAYERPREFIX% %NAME%%PLAYERSUFFIX%§e: %MESSAGE%
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] Entering aysncIRCMessage
[11:17:30] [Server thread/INFO]: [PurpleIRC] [DEBUG] [isMessageEnabled] #Global:game-chat:false
[11:17:30] [Server thread/INFO]: Belegalgar [0;33;1m:[0;33;1m Test[m
[11:17:30] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [1]: queueAndSend message detected
[11:17:30] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] About to send IRC message to #Global: Belegalgar08: Test
[11:17:30] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] Message sent to #Global: Belegalgar08: Test
[11:17:30] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [0]: queueAndSend message detected
[11:17:30] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] About to send IRC message to #Global: Belegalgar08: Test
[11:17:30] [Timer-2/INFO]: [PurpleIRC] [DEBUG] [blockingIRCMessage] Message sent to #Global: Belegalgar08: Test
Should be fixed in build 184: https://h.cnaude.org/jenkins/job/PurpleIRC-spigot/184/
Sorry for late answer..
testet today with 187:
Message is only send once -> okay.
But it seems like i have to reopen #13 , sorry.