zD12 / pircbotx

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

org.pircbotx.output.OutputChannel.setMode(String mode, Object... args) doesn't working properly #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. if there is given a mode flag "+ooo" and "user1 user2 user3", user1 cannot 
get op permission

What is the expected output? What do you see instead?
in the L206 of org/pircbotx/output/OutputChannel.java,
mode + StringUtils.join(args, " ")
this code produces concatenated string as "+ooouser1 user2 user3" although 
there is must be
"+ooo user1 user2 user3" for setMode(String string) method to give op 
permission to each given users properly.

What version of the product are you using? On what operating system?
PircBotX 2.0.1

Please provide any additional information below.
please change code as mode + " " + StringUtils.join(args, " ") from the L206 of 
org/pircbotx/output/OutputChannel.java
instead of mode + StringUtils.join(args, " ")

Original issue reported on code.google.com by DarkCirc...@gmail.com on 25 Jan 2014 at 9:14

GoogleCodeExporter commented 9 years ago
Ummm... wow sorry about that. Fixed that and setMode(String, User) in Revision 
69f7a448f128.

Until the next version is released add a space to the first parameter, eg 
setMode("+bb ", "user1", "user2")

Original comment by Lord.Qua...@gmail.com on 27 Jan 2014 at 8:01