raisedragon / pircbotx

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

OPs not storing #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Moving from 2.0.1 to 2.1 snapshots, I noticed that +o modes received by 
PircBotX were not being saved in the list returned by getOps(). Not sure if I 
missed a change or if this is a bug.

Original issue reported on code.google.com by caseyruc...@gmail.com on 22 Jan 2015 at 10:48

GoogleCodeExporter commented 9 years ago
Just tested this, works for me doing event.getChannel().getOps():

<TheLQ> ?modes
<PircTest> TheLQ: Op [] | Voice []
* ChanServ gives channel operator status to TheLQ
<TheLQ> ?modes
<PircTest> TheLQ: Op [TheLQ] | Voice []

Can you attach a full log reproducing this?

Original comment by Lord.Qua...@gmail.com on 24 Jan 2015 at 9:08

GoogleCodeExporter commented 9 years ago
<cruck1000> ?contains
{event.getChannel().getOps().contains(event.getUser())}
<PircBotx> false
jtv MODE #cruck1000 +o cruck1000
jtv MODE #cruck1000 +o PircBotx
{event.getChannel().getOps().contains(event.getUser())}
<PircBotx> false
{event.getChannel().getOps().contains(event.getBot().getUserBot())}
<PircBotx> true

Worked with 2.0.1. Upgraded to 2.1 Snapshot, lead to above result, downgraded 
to 2.0.1. Above code returned desired results.

Original comment by caseyruc...@gmail.com on 25 Jan 2015 at 3:18

GoogleCodeExporter commented 9 years ago
if(event.getMessage().startsWith("?mymodes")) {
    event.respond("Levels: " + StringUtils.join(event.getUser().getUserLevels(event.getChannel())));
    event.respond(Utils.format("op? {} | voice? {}", 
        event.getChannel().getOps().contains(event.getUser()), 
        event.getChannel().getVoices().contains(event.getUser())
    ));
}

for me gives

<TheLQ> ?mymodes
<PircTest> TheLQ: Levels: []
<PircTest> TheLQ: op? false | voice? false
* ChanServ gives channel operator status to TheLQ
<TheLQ> ?mymodes
<PircTest> TheLQ: Levels: [OP]
<PircTest> TheLQ: op? true | voice? false

Can you post the raw console output please and what IRC network this happens 
on? It should look something like this: 
https://gist.github.com/TheLQ/70d67e08bd486067c637

Original comment by Lord.Qua...@gmail.com on 25 Jan 2015 at 10:18

GoogleCodeExporter commented 9 years ago
http://pastebin.com/EMDHZUrq on irc.twitch.tv with 2.1 (from 2015 01 12)

http://pastebin.com/xqsri77E on irc.twitch.tv with 2.0.1 release

Original comment by caseyruc...@gmail.com on 26 Jan 2015 at 12:19

GoogleCodeExporter commented 9 years ago
Fixed in Revision 81963dbe53ec

Original comment by Lord.Qua...@gmail.com on 8 Feb 2015 at 10:01

GoogleCodeExporter commented 9 years ago
Also fixed that CAP Exception in Revision 053afbc7970c

Original comment by Lord.Qua...@gmail.com on 10 Feb 2015 at 5:46