cnaude / PurpleIRC

Minecraft Bukkit plugin that provides an IRC bridge. This repo has been archived. Please see https://github.com/cnaude/PurpleIRC-spigot for the latest and greatest PurpleIRC code for Bukkit servers (Spigot, Paper etc...)
20 stars 9 forks source link

can not send chat from irc #35

Closed ghost closed 10 years ago

ghost commented 10 years ago

I have updated to the most recent development build and I am no longer able to send messages from irc, perhaps because my player name is not found? how can i correct this?

http://hastebin.com/kiyojukima.vbs

ghost commented 10 years ago

I have

nick-exact-match: false

in my config.yml

ghost commented 10 years ago

Still not working for me

config.yml : http://hastebin.com/sawovaqaka.dos delta.yml (bot): http://hastebin.com/rafiwonapa.php debug: http://hastebin.com/jiqitahobi.dos

cnaude commented 10 years ago

I'm still working on this one. It will take me a few minutes to track this one down.

cnaude commented 10 years ago

I tested your exact config on my IRC server and it seems to work correctly. What version of Bukkit is this happening on?

ghost commented 10 years ago

spigot build 1134

ghost commented 10 years ago

c0de is a nickname i use but is not an actual IGN or player on the server, but even when I use my IGN austindkelly it does seem to work as long as I am logged in. All users should be able to send to game chat from the irc channel not just ones with matching IGNs

cnaude commented 10 years ago

Okay I think i know where in the code it's breaking. I'm going to upload a test version in a minute that will help me isolate the problem.

cnaude commented 10 years ago

Download https://dl.dropboxusercontent.com/u/30679730/dist/PurpleIRC.jar and use the debug mode to test a message from IRC. The output should tell me exactly where the message is failing.

ghost commented 10 years ago

20:14:34 [INFO] [PurpleIRC] Connecting to "irc.na.esper.net:6697" as "DELTA" [SSL: true] [TrustAllCerts: true] 20:14:35 [INFO] [PurpleIRC] Sending ident password to NickServ... 20:14:35 [INFO] [PurpleIRC] Automatically joining IRC channel #delta 20:14:35 [INFO] [DELTA] Connected to IRC server. 20:14:35 [INFO] [PurpleIRC] Automatically joining IRC channel #deltastaff 20:14:35 [INFO] [DELTA] Connected to IRC server. 20:14:36 [INFO] [PurpleIRC] [DEBUG] Setting channel modes: #delta => +Cjmntz 20:14:36 [INFO] [PurpleIRC] [DEBUG] Setting channel modes: #deltastaff => +Cmntz 20:14:39 [INFO] [PurpleIRC] [DEBUG] Message caught : test 20:14:39 [INFO] [PurpleIRC] [DEBUG] Message dispatched for broadcast... 20:14:39 [INFO] [PurpleIRC] [DEBUG] Check if irc-chat is enabled before broadcasting chat from IRC 20:14:39 [INFO] [PurpleIRC] [DEBUG] Yup we can broadcast due to irc-chat enabled 20:14:39 [INFO] [PurpleIRC] [DEBUG] Checking for player matching c0de 20:14:39 [INFO] [PurpleIRC] [DEBUG] ircChatToGameTokenizer: null player: c0de 20:14:39 [INFO] [PurpleIRC] [DEBUG] Tokenizing c0de 20:14:39 [INFO] [PurpleIRC] [DEBUG] T1 20:14:39 [INFO] [PurpleIRC] [DEBUG] T2 20:14:39 [INFO] [PurpleIRC] [DEBUG] T3 20:14:39 [INFO] [PurpleIRC] [DEBUG] T4 20:14:39 [INFO] [PurpleIRC] [DEBUG] T5 20:14:39 [INFO] [PurpleIRC] [DEBUG] T6 20:14:39 [INFO] [PurpleIRC] [DEBUG] T7 20:14:41 [INFO] [PurpleIRC] [DEBUG] Tokenizing Symen_4ab(O: true)

cnaude commented 10 years ago

Are you running Multiverse? If so what what version?

cnaude commented 10 years ago

Is the default-player-world set for a valid world?

cnaude commented 10 years ago

I just pushed a new version that should resolve the issue. It was failing due to an invalid default world. That world name is used for IRC users that don't match in game player names.

ghost commented 10 years ago

Ah yes, I had it set to "world" which is not a name of a world on my server, I do use multiverse # 2.5-b675

What will setting the default world do?

cnaude commented 10 years ago

When a user in IRC chats it will use that default world for default chat prefixes.

ghost commented 10 years ago

Without loading the new version, which I will do shortly, I wanted to share the results of setting a proper world name in the config.yml. If this field is empty in the new version what would happen?

http://hastebin.com/xahefigewa.dos

ghost commented 10 years ago

If I have no default chat prefixes set will it assume the groupmanager prefixes?

ghost commented 10 years ago

update spit this out:

http://hastebin.com/viwediyoki.dos

samplebot.yml exist but is 0 bytes

cnaude commented 10 years ago

It will actually attempt to get default player suffix, player prefix, group prefix, group name and world alias from that. Of course if you don't have those tokens in your config.yml it doesn't really matter. If you leave it blank nothing bad happens. It should allow messages to be sent regardless of the value in there now.

cnaude commented 10 years ago

Was that on a complete stop or a reload?

ghost commented 10 years ago

reload. I am going to do complete stop now. and i will post results to confirm everything working okay. so far seems good.

ghost commented 10 years ago

I can confirm everything to be working properly. The following is a full debug from server start.

http://hastebin.com/butexuniqa.txt