Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Net::AIM trouble

by gornox_zx (Priest)
on Nov 12, 2001 at 06:57 UTC ( [id://124725]=note: print w/replies, xml ) Need Help??


in reply to Net::AIM trouble

Hello, I just started using net::aim last week to try to make an aim bot. I haven't really had any problems like that; then again, I haven't tried any suave plugins like you are implementing. I just made a function that parsed for commands and executed them.
My code is not nearly as elegant/cool as yours and I like your idea of plugins. I think that your problem is that your $nick at some point loses it's value.
Perhaps you could trace the value of it in each function/plugin it is being used in by printing it out, and thus see where you are losing it.
Perhaps something like this:
sub main_program{ my($self,$nick,$args) = @_; print "\$nick = $nick"; my $time = localtime(time); $self->send_im($nick,"The current time is: $time."); }

Another thing to consider, aside from your problem, is how you are storing the login info in the configuration file. I think it would be a good idea to use some kind of encryption for your information in the file, and then decrypting it before you use it to log in. Either that or type it in at the command prompt. I don't know your situation, but I think people are in general too loose with their logins/passwords, and that though this is only an aim password, it is still a habit to get into. ~heise2k~

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://124725]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found