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.

find string in string & multiline output?

Old posts that have not been replied to for several years.
Locked
I
Incubus

Post by Incubus »

how can i test if "string1" is included in "string2"?
how can i give more lines out to an irc channel?
thx 4 help
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

First question, use the "string match" command

EG
string match "*test*" "Is it in this test string"

Second question.

Isn't that pretty simple. Use multiple lines of puthelp, to output tot he server.
I
Incubus

Post by Incubus »

when i use this:
puthelp "PRIVMSG $chan :An line added by you where do you want."
puthelp "PRIVMSG $chan :An other line added by you where do you want."
than by bots says
TCL error [join:greet]: extra characters after close-quote
what do i wrong?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You would have to paste the exact line you are using, else the problem can't be seen.

If they are the exact lines, then this is not the problem, it is in another part of the script.

It is missing a " somwhere.
I
Incubus

Post by Incubus »

now it works.
i put a " in the text which i want to send :smile:
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

it is possible to include "'s in the text you want to send, you just have to excape the chars.

Eg " ( then " - incase the forum hates it)
Locked