Techcable / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

partChannel(Channel channel, String reason) isn't parting with reason #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. bot.partChannel(channel, "Reason");

What is the expected output? What do you see instead?
Expected:
[13:41] == zack6849 [~zack6849@zack6849.com] has left #BranicYeti [testing 
multiple words]
What I see:
[13:22] == YetiBot [~YetiBot@pool-96-252-137-176.tampfl.fios.verizon.net] has 
left #BranicYeti []

What version of the product are you using? On what operating system?
1.8-SNAPSHOT, Windows 7

Please provide any additional information below.
The part that zack6849 did was using /quote PART #BranicYeti :reason, which I 
believe is the same way that the bot would part, so why exactly it doesn't work 
is beyond me. It sends the Parting channels... message in console like it 
should there, and disconnects from the server successfully.

Code I am using:
    public static void disconnect() {
        for (Channel channel : bot.getChannels()) {
            System.out.println(String.format("[YetiBot] Parting channel '%s'", channel.getName()));
            bot.partChannel(channel, "Murdered from within console!");
        }
        bot.disconnect();
        System.exit(0);
    }

Original issue reported on code.google.com by BranicY...@live.co.uk on 15 Jan 2013 at 1:43

GoogleCodeExporter commented 9 years ago
Was the bot in the channel for longer than 5 or 10 minutes? I think on some 
servers the part message doesn't show up for users that aren't in the channel 
long

Original comment by Lord.Qua...@gmail.com on 15 Jan 2013 at 3:50

GoogleCodeExporter commented 9 years ago
Apologies for the delay. The bot was not in the channel for long at all, 
perhaps less than 2 minutes. However I managed to join and use /quote part with 
a message successfully with a normal connection.

I noticed that you have updated to a full 1.8 build and even are developing 
1.9. I will try changing my version and see what I can pull up. I will try 
again with the bot in the channel for longer too, just to be sure.

Original comment by BranicY...@live.co.uk on 18 Jan 2013 at 9:16

GoogleCodeExporter commented 9 years ago
@BranticYeti , has bumping up your version helped?

Original comment by entityreborn on 29 Jan 2013 at 1:21

GoogleCodeExporter commented 9 years ago
Sorry about the delay, been busy with school and stuff.

I tried bumping my version up to 1.9-SNAPSHOT, still no luck. I even tried 
using bot.sendRawLine(String.format("PART %s :Part reason.", 
channel.getName()), but no luck either. I'm at a loss of ideas...

Original comment by BranicY...@live.co.uk on 31 Jan 2013 at 8:52

GoogleCodeExporter commented 9 years ago
Sorry, I've been busy recently.

Tested with the most recent build, I get this when parting almost immediately
1361208758349 <<<:PircBotX!~LQ@74-141-215-146.dhcp.insightbb.com JOIN #pircbotx
1361208781595 >>>PART #pircbotx :I'm done with this channel!
1361208781797 <<<:PircBotX!~LQ@74-141-215-146.dhcp.insightbb.com PART #pircbotx 
<-- Missing

I then get this when waiting 12 minutes
1361208897348 <<<:PircBotX!~LQ@74-141-215-146.dhcp.insightbb.com JOIN #pircbotx
1361209535367 >>>PART #pircbotx :I'm done with this channel!
1361209535571 <<<:PircBotX!~LQ@74-141-215-146.dhcp.insightbb.com PART #pircbotx 
:"I'm done with this channel!" <--- Here

I can tell you PircBotX is working, its just the server for some reason doesn't 
want to post your reason. Asking the sysops is about the only other thing I can 
think of

Original comment by Lord.Qua...@gmail.com on 18 Feb 2013 at 5:51