yangdajun / xmpphp

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

XMPP constructor does not store given server name #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hey !

I ran the cli_example and tried to get the vcard, sending 'vcard' to the
running bot.
The response was broken and the bot reported missing $conn->server.

To fix this the constructor needs to store the given server name.
You could insert into line 120:

        $this->server  = $server;

The version is 0.1rc2, Rev 77 (pulled directly from you netflint SVN).

There are further errors in the bot script, like trying to get $cmd[1]
without using empty() or something else.

Original issue reported on code.google.com by christia...@gmail.com on 24 Oct 2009 at 4:24

GoogleCodeExporter commented 8 years ago
thank you,
 you save me a lot of time :)

Original comment by errat...@gmail.com on 24 Oct 2009 at 6:18

GoogleCodeExporter commented 8 years ago
Sure, no problem ;)

Original comment by christia...@gmail.com on 9 Nov 2009 at 3:58