Viewing topic:Mode commands for php irc bot
Page: 1
Topic post 31-05-2008 - 14:59
I tried to add some mode command like this one
code
1
2
3
4
5
6
7

 
case ':!v':
if ($username == "windows"){
fputs($socket, "MODE +v ". $ex[4]."n");
break;
}
 
 



but i get this

indows!windows@rox-2D672F2.sc.res.rr.com PRIVMSG #wes :!v Banjo

Array
(
[0] => indows!windows@rox-2D672F2.sc.res.rr.com
[1] => PRIVMSG
[2] => #wes
[3] => :!v
[4] => Banjo

)

:irc.wes.com 401 wesbot +v :No such nick/channel

Array
(
[0] => :irc.wes.com
[1] => 401
[2] => wesbot
[3] => +v
[4] => :No
[5] => such
[6] => nick/channel

)


can some one help me with this???
Topic post 01-06-2008 - 00:40
I've never used the modes, but what i think that is the case, is thet you should first send the name, and then +v. Eg: MODE user +v

Does this work?
Topic post 01-06-2008 - 15:10
no if you look at the output thats what it is doing it supposed to be
"MODE +v wesbot" but its outputting to the irc as "MODE wesbot +v"
Topic post 01-06-2008 - 21:00
Aah i found the problem. You can easily solve those problems by using a TCP sniffer. A TCP sniffer is an application that "sniffs" the data that's being send and recieved through a network card (noy ssl secures connections of course)

The correct way is:

:ZonaX!jim@**hostname** MODE #test +v ZonaX

So just add the channel

Hope this time it does help
Topic post 02-06-2008 - 13:58
Can some one help me change my code???
Topic post 02-06-2008 - 15:53
fputs($socket, "MODE ". $ex[2]." +v ". $ex[4]."\n";

^ Should work just fine
Topic post 09-06-2008 - 21:09
if ($command == ":.voice" {

fputs($socket, "MODE ".$ex[2]." +v ".$ex[4]."n";
}

©Copyrights Combined Minds. All rights reserved 2006 - 2008 : Disclaimer
Realized by www.Minna-Media.com