"be consistent" | |
PerlMonks |
Re: Net::AIM troubleby gornox_zx (Priest) |
on Nov 12, 2001 at 06:57 UTC ( [id://124725]=note: print w/replies, xml ) | Need Help?? |
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:
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~
In Section
Seekers of Perl Wisdom
|
|