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.
Old posts that have not been replied to for several years.
Joel
Voice
Posts: 11 Joined: Tue Sep 06, 2005 7:26 am
Post
by Joel » Wed Sep 07, 2005 4:47 am
Code: Select all
bind pub !help bot_help
proc bot_help {nick uhost hand chan rest} {
putchan $chan "Google Commands: !google !image !groups !local /n
BoFH Commands: !bofh !selbofh /n
Bash.org: !bash /n
Others: !seen"
return
}
I think I'm doing something wrong with the command !help?
Anyone give me a quick pointer?
Joel
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Wed Sep 07, 2005 5:03 am
your [bind] command has invalid format, it lacks flags parameter
use separate [putchan] command for each line to output
Joel
Voice
Posts: 11 Joined: Tue Sep 06, 2005 7:26 am
Post
by Joel » Wed Sep 07, 2005 5:25 am
Your a star, thanks
Is there any way to get it to just output everything in one chunk of text, rather than on separtate lines?
Joel
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Wed Sep 07, 2005 5:32 am
certainly there is, simply don't include newline character(s)
De Kus
Revered One
Posts: 1361 Joined: Sun Dec 15, 2002 11:41 am
Location: Germany
Post
by De Kus » Thu Sep 08, 2005 6:35 am
IRC protocol is single line, meaning if the bot really sends it out it will get the error that there are no commands called "BoFH", "Bash.org:" and "Others:" ^-^. There is no known for me to force a client to do a linebreak without really printing a new line.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under
The MIT License
Love hurts, love strengthens...
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Thu Sep 08, 2005 11:48 am
not only IRC, you cannot force linebreak
anywhere without using new line character
De Kus
Revered One
Posts: 1361 Joined: Sun Dec 15, 2002 11:41 am
Location: Germany
Post
by De Kus » Thu Sep 08, 2005 12:41 pm
demond wrote: not only IRC, you cannot force linebreak
anywhere without using new line character
thats wrong, in a telnet connection you can use linebreak (or beter move the cursor down and backwards, but thats the same as linebreak in the end anyway, at least in windows) with ANSI codes, but mIRC ignores ANSI codes altering the cursor (I confirmed that after posting my previous post).
Code: Select all
[17:49:59] tcl: evaluate (.tcl): putdcc 11 "two \033\E\033\[40Dlines"
two
lines
test it yourself
Last edited by
De Kus on Thu Sep 08, 2005 12:54 pm, edited 1 time in total.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under
The MIT License
Love hurts, love strengthens...
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Thu Sep 08, 2005 12:53 pm
linebreak == newline == LF == \n
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Fri Sep 09, 2005 9:23 pm
demond wrote: linebreak == newline == LF == \n
I thought that was rather obvious to anyone.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM