Home
Search
Files
User Control Panel
The time now is Sun Nov 23, 2008 1:22 pm
Log in to check your private messages
View unanswered posts
Who is Online
My Profile
Log in
Advertisements
HELP US, HELP YOU!
Mirror module for MSN2.0
Goto page
Previous
1
,
2
Bot Depot Forum Index
->
Modules & Add-ons
View unanswered posts
Author
Message
Cer
Upgraded Agent
Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
votes
: 4
Posted: Sat Feb 26, 2005 7:26 pm
Post subject:
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
Joined: 31 Dec 2004
Posts: 134
Posted: Thu Mar 10, 2005 4:20 pm
Post subject:
heh, Sorry for re-opening, But this module was really useful to me,
Weldone!
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
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