raisedragon / pircbotx

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

isIrcop != Channel Owner on Twitch.tv #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
if( event.getUser.isIrcop() ) {
  event.getBot().sendMessage(event.getChannel(), "/me is playing <youtube_vid_title>");
}else{
  System.out.println(event.getUser.getNick() + " -> You must be a  Moderator to use this command");
}

What is the expected output? What do you see instead?
Netbeans Console: mrvdog -> You must be a moderator to use this command!

What version of the product are you using? On what operating system?
1.9 - Windows 8

Original issue reported on code.google.com by vdog8...@gmail.com on 25 Jun 2013 at 2:33

GoogleCodeExporter commented 9 years ago
I haven't looked at that code, but I believe you are confused as to the term 
ircop. An ircop is someone who has 'superpowers' on an irc server, not a 
channel owner.

Original comment by entityreborn on 25 Jun 2013 at 2:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Well I'm making a bot for my Twitch Channel, and have the command "!playsong 
<youtube_link>", but I want to limit the usage to Moderators and Me(Channel 
Owner), how can I do this?

Original comment by vdog8...@gmail.com on 25 Jun 2013 at 2:46

GoogleCodeExporter commented 9 years ago
Assuming Twitch.tv uses standard IRC levels then use isOp to determine 
moderators and (maybe) isOwner to determine the channel owner. 

If this doesn't work can you send the raw output of /WHO #yourChannel ?

Original comment by Lord.Qua...@gmail.com on 25 Jun 2013 at 8:52

GoogleCodeExporter commented 9 years ago
Assuming fixed

Original comment by Lord.Qua...@gmail.com on 13 Jul 2013 at 12:29