raisedragon / pircbotx

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

Twitch.tv IrcOp #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
if(event.getMessage().equalsIgnoreCase("!optest")){
     if(event.getUser().isIrcop()){
          event.getBot().sendMessage(event.getChannel(), "You are a operator.");
     }else{
          event.getBot().sendMessage(event.getChannel(), "You are not a operator.");
     }
}

What is the expected output? What do you see instead?
I want the bot to say if they are IrcOp or not.

What version of the product are you using? On what operating system?
Version 1.9, Windows 7 Professional 64Bit

Note: By the Sword, you can see I am a IrcOp, and the Battery means I am a 
Turbo user with Twitch.
http://i.imgur.com/6sUg5Aq.png

Original issue reported on code.google.com by mretech...@gmail.com on 22 Sep 2013 at 3:12

GoogleCodeExporter commented 9 years ago
Are you sure you don't mean channel operator? Try 
event.getChannel().isOp(event.getUser());

IrcOp means the user is a network administrator. 

Original comment by Lord.Qua...@gmail.com on 25 Sep 2013 at 1:40

GoogleCodeExporter commented 9 years ago
The method I was using worked before, but not now. I think twitch switched 
there servers from JTV to there own. Thank you for the new method.

Original comment by mretech...@gmail.com on 25 Sep 2013 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by Lord.Qua...@gmail.com on 7 Oct 2013 at 4:08