Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Net::AIM trouble

by gornox_zx (Priest)
on Nov 12, 2001 at 06:57 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2019-04-25 20:14 GMT
Find Nodes?
    Voting Booth?
    I am most likely to install a new module from CPAN if:

    Results (127 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!