Don't send message to IRC until bot has joined channel #13


  • Defect
  • Accepted
Open
Assigned to _ForgeUser7414863
  • _ForgeUser7414863 created this issue Nov 6, 2012
    Author

    #Bug: Don't send message to IRC until bot has joined channel ###What steps will reproduce the problem?

    1. Wait for MinecraftBot to begin connection attempt to IRC.
    2. Take an action on the Minecraft server that would be relayed to IRC (e.g. join server, or speak in chat)
    3. The connection attempt is aborted with an exception.

    ###What is the expected output? What do you see instead? Bot aborts connection attempt and retries after raising an exception. The bot should ignore messages before it is fully connected.

    ###What version of the product are you using? Logs were from v2.2.3 but problem still exists in latest version.

    ###Do you have an error log of what happened? 2012-10-10 13:19:50 [INFO] [MinecraftBot] Connecting to irc.furnet.org... (Attempt 1) 2012-10-10 13:19:53 [INFO] TerrorBite[/59.167.159.206:57790] logged in with entity id 418 at ([survival] 272.4069626290125, 54.0, 2104.735830570229) 2012-10-10 13:19:53 [WARNING] [MinecraftBot] Failed to connect: Could not log into the IRC server: :coyote.furnet.org 451 PRIVMSG :You have not registered 2012-10-10 13:19:54 [SEVERE] Exception in thread "bot1-output" 2012-10-10 13:19:54 [SEVERE] java.lang.RuntimeException: Trying to send message when no longer connected 2012-10-10 13:19:54 [SEVERE] at org.pircbotx.OutputThread.failIfNotConnected(OutputThread.java:91) 2012-10-10 13:19:54 [SEVERE] at org.pircbotx.OutputThread.run(OutputThread.java:103) 2012-10-10 13:19:58 [INFO] [MinecraftBot] Connecting to irc.furnet.org... (Attempt 2)

    ###Please provide any additional information below. The IRC 451 code is returned when attempting to use other IRC commands before being fully logged into the IRC server.

    USER and NICK commands (and optionally a PASS) must be sent to the IRC server before any other commands may be sent.

    Additionally, the bot may attempt to message the channel before it has joined (or after it is kicked), which will fail if the channel is set +n (as most are).

  • _ForgeUser7414863 added the tags Accepted Defect Nov 6, 2012
  • _ForgeUser7414863 edited description Nov 6, 2012

To post a comment, please login or register a new account.