|
| Author |
Message |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Sun Feb 27, 2005 3:09 pm Post subject: |
|
|
There seemed to be an error wene you called Leave which would crash your bot.
So i made a new leave sub (Put it in switchboard.pm )
| Code: | | <br />=head2 GoLeave<br /><br />Make the bot leave a convo optional pass a leave greet msg.<br /><br />$self->GoLeave("Greeting?");<br /><br />=cut<br /><br />sub GoLeave<br />{<br /> my $self = shift;<br /> my $bye = shift || 'Bye';<br /><br /> $self->sendMessage("$bye, I will now leave the conversation.");<br /> $self->{Socket}->print("OUT\*lazy*\n");<br /> $self->{Msn}->{Select}->remove($fn);<br /> delete $self->{Msn}->{Connections}->{$fn};<br /> undef $self;<br />} |
It should help people. |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Sun Feb 27, 2005 4:19 pm Post subject: |
|
|
| uhh so whats it for? template,language?? |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sun Feb 27, 2005 4:27 pm Post subject: |
|
|
That's for MSN2.0, Perl, all templates. Surely you could work that out... _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Sun Feb 27, 2005 5:31 pm Post subject: |
|
|
:blink:
never seen all this been used before
| Code: | | =head2 GoLeave<br /><br />Make the bot leave a convo optional pass a leave greet msg.<br /><br />$self->GoLeave("Greeting?");<br /><br />=cut |
Edit: Was that bit about putting in the leave sub there before?! im sure it wasnt! |
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Sun Feb 27, 2005 5:42 pm Post subject: |
|
|
| Its perl POD (Plain old doc) |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sun Feb 27, 2005 7:35 pm Post subject: |
|
|
...Which is mainly found in modules. _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sun Feb 27, 2005 10:08 pm Post subject: |
|
|
If you're all really that stupid:
The use of POD tells you it's probably a module. And the example "$self->DoLeave" tells you it's a method (for a module).
Open up yer MSN 2.0 module, copy and paste the code in, save, and then call $self->DoLeave instead of $self->leave when you want to leave a convo.
Congratulations, I just lost 4 IQ points. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Mon Feb 28, 2005 3:43 pm Post subject: |
|
|
um ok i was only asking.... :unsure: being perfect is too much work.... |
|
| Back to top |
|
 |
|