User Control Panel
Advertisements

HELP US, HELP YOU!

Mirror module for MSN2.0
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Modules & Add-ons
View unanswered posts
Author Message
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sat Feb 26, 2005 7:26 pm    Post subject: Reply with quote

QUOTE(davidk @ Feb 26 2005, 04:38 AM)
Do I have to add Event Handlers Manually for each connection or does $quad->setHandler(); do this for me?

Yeah, you need to call setHandlers for each connection.

You can do it dynamically too:
Code:
my $bots = {<br />   'bot1@msn.com' => 'password',<br />   'bot2@msn.com' => 'password',<br />};<br /><br />our $msn = {}; # MSN hashref.<br /><br />foreach my $conn (keys %{$bots}) {<br />   $msn->{$conn} = new MSN;<br /><br />   $msn->{$conn}->setHandler (...);<br />   $msn->{$conn}->setHandler (...);<br />   $msn->{$conn}->setHandler (...);<br /><br />   $msn->{$conn}->connect();<br />}<br /><br />while (1) {<br />   foreach (keys %{$msn}) {<br />      $msn->{$_}->do_one_loop();<br />   }<br />}

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
M4RTIN
Member
Member


Joined: 31 Dec 2004
Posts: 134

Reputation: 19.2Reputation: 19.2

PostPosted: Thu Mar 10, 2005 4:20 pm    Post subject: Reply with quote

heh, Sorry for re-opening, But this module was really useful to me,

Weldone!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Modules & Add-ons All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group