User Control Panel
|
|
|
 |
Advertisements
|
 |
|
|
|
HELP US, HELP YOU!
|
| Author |
Message |
BraveHeart Senior Member

Joined: 14 Jan 2004 Posts: 285
   
|
Posted: Fri Mar 05, 2004 5:22 pm Post subject: |
|
|
| Code: | | sub reload {<br /> my ($bot, $self, $user, $msg) = @_;<br />$self->sendmsg("3(o) Please wait... (o)<br /> <br /> The Bot is updating information...");<br />delete $bot->{commands};<br />$bot->commands(); <br />return"12Information successfuly updated!";<br /><br />{<br /> Description => "Stop the bot",<br /> Category => "System"<br />};<br /> |
Whats up with this code? it keeps sending my bot offline with:
| Quote: | | Undefined subroutine &MSN::Bot::reload called at lib/MSN/Bot.pm line 183, |
|
|
| Back to top |
|
 |
BraveHeart Senior Member

Joined: 14 Jan 2004 Posts: 285
   
|
Posted: Fri Mar 05, 2004 10:40 pm Post subject: |
|
|
| Any1 ? |
|
| Back to top |
|
 |
..::BIGmouth( )::.. God Like

Joined: 05 Feb 2004 Posts: 801
    
|
Posted: Fri Mar 05, 2004 11:01 pm Post subject: |
|
|
Your missing a, }
| Code: | | sub reload {<br /> my ($bot, $self, $user, $msg) = @_;<br />$self->sendmsg("3(o) Please wait... (o)<br /> <br /> The Bot is updating information...");<br />delete $bot->{commands};<br />$bot->commands(); <br />return"12Information successfuly updated!";<br /><br />}<br /><br />{<br /> Description => "Stop the bot",<br /> Category => "System"<br />}; |
|
|
| Back to top |
|
 |
BraveHeart Senior Member

Joined: 14 Jan 2004 Posts: 285
   
|
Posted: Fri Mar 05, 2004 11:32 pm Post subject: |
|
|
Heh,
Thanks mate
 |
|
| Back to top |
|
 |
|
|