Jayson Posted August 3, 2010 Share Posted August 3, 2010 (edited) Hi, I made a little irc client and I got some proplem. I'm trying to change the mode of somone to make him operator on IRC but i'm not sure why it doesn't work at some place. When I select the username and OP nor trying other mode on him i'm getting the same error over and over even if i'm an operator. That's the error that i get : :gibson.freenode.net 481 testtting :Permission Denied - You're not an IRC operator :gibson.freenode.net 472 testtting O :is unknown mode char to me And that's my code to op someone : Func op() ; /mode #channel +o nickname $nick_select = _GUICtrlListBox_GetSelItemsText($NameList) If StringInStr($nick_select, "@") Or StringInStr($nick_select, "+") Then $nick_select = StringMid($nick_select, 2) _IRCChangeMode($sock, $channel, $channel & " MODE +o" & $nick_select) EndFunc ;==> op Edited August 3, 2010 by Jayson Link to comment Share on other sites More sharing options...
BugFix Posted August 4, 2010 Share Posted August 4, 2010 ; change _IRCChangeMode($sock, $channel, $channel & " MODE +o" & $nick_select) ; to _IRCChangeMode($sock, "+o", $channel, $nick_select) You must all parameters set in right order, like declared in Func _IRCChangeMode(). The keyword "MODE" is always inside the function. Best Regards BugFix Link to comment Share on other sites More sharing options...
Jayson Posted August 4, 2010 Author Share Posted August 4, 2010 I have already tried that but it didn't work. The command have to be used with 3 args. C:\Users\Jason\Desktop\jIRC\jIRC.au3(104,49) : ERROR: _IRCChangeMode() called with wrong number of args. _IRCChangeMode($sock, "+o", $channel, $nick_select) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\IRC.au3(164,44) : REF: definition of _IRCChangeMode(). Func _IRCChangeMode ($irc, $mode, $chan="") Link to comment Share on other sites More sharing options...
Quual Posted August 10, 2010 Share Posted August 10, 2010 The irc command is mode channel +o nick so try _IRCChangeMode($sock, $channel, '+o ' & $nick_select) Link to comment Share on other sites More sharing options...
Jayson Posted August 10, 2010 Author Share Posted August 10, 2010 It still don't work.. This is what i get from the error log : gibson.freenode.net 403 POKEMNON1 +o :No such channel I have tried every single solution possible it seems to don't work anyway Link to comment Share on other sites More sharing options...
Jayson Posted August 18, 2010 Author Share Posted August 18, 2010 Anyone could help me ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now