This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

output error msg's to chan?

Old posts that have not been replied to for several years.
Locked
S
ShavdApe
Halfop
Posts: 46
Joined: Mon Dec 15, 2003 5:22 pm

output error msg's to chan?

Post by ShavdApe »

I want to output error msg's i get in some processes to a channel is this possible if so how please?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

You can use catch

Code: Select all

if {[catch {# command goes here} error]} {
  putserv "PRIVMSG $chan :$error "  
}
S
ShavdApe
Halfop
Posts: 46
Joined: Mon Dec 15, 2003 5:22 pm

Post by ShavdApe »

ah ty :)
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

np.

I forgot to mention that tcl will also store more detailed error info in a var called $errorInfo, so if you're stuck you might want to take a look at that.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yes, correct gb.
That would can be displayed by typing:

.tcl set errorInfo in partyline.
(Would display a detailed view of the error)

Making sure you have commented/removed the unbind for
the tcl binding in dcc of your bot's .CONF file.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked