Omnimaga

Omnimaga => Discontinued => Our Projects => OmnomIRC Development => Topic started by: jnesselr on April 23, 2011, 12:19:16 pm

Title: OmnomIRC won't highlight with "/me"
Post by: jnesselr on April 23, 2011, 12:19:16 pm
If someone says "/me says hi to graphmastur", then it won't highlight and bold it even though it says my username. I'm assuming it has to do with it being a "/me" thing.
Title: Re: OmnomIRC won't highlight with "/me"
Post by: DJ Omnimaga on April 24, 2011, 02:09:38 pm
Yeah I think Netham45 forgot to check for /me. With /me, even nicknames won't get linked, so we don't know if the person is on IRC or the website.
Title: Re: OmnomIRC won't highlight with "/me"
Post by: Netham45 on April 25, 2011, 04:33:06 am
It bolds it, it just makes it purple since /me has a purple control char in it.

*adds making it red to his todo list*
Title: Re: OmnomIRC won't highlight with "/me"
Post by: ZippyDee on April 25, 2011, 04:34:23 am
What about links on omnom nicks for /me commands?
Title: Re: OmnomIRC won't highlight with "/me"
Post by: Netham45 on April 25, 2011, 04:36:23 am
What about links on omnom nicks for /me commands?

I gotta come up with a way to do that, but should happen eventually. :P
Title: Re: OmnomIRC won't highlight with "/me"
Post by: ZippyDee on April 25, 2011, 04:38:38 am
Is it difficult to add that in? I guess it all depends on how you implemented it for normal messages...
Title: Re: OmnomIRC won't highlight with "/me"
Post by: Netham45 on April 25, 2011, 04:39:16 am
Is it difficult to add that in? I guess it all depends on how you implemented it for normal messages...

I just gotta make a regex to check for them and add the links in.
Title: Re: OmnomIRC won't highlight with "/me"
Post by: ZippyDee on April 25, 2011, 04:41:05 am
/^\x01ACTION.*$/ should do the trick to catch a /me command, shouldn't it?
Title: Re: OmnomIRC won't highlight with "/me"
Post by: Netham45 on April 25, 2011, 04:45:17 am
Omnom ones are sent differently.

Code: [Select]
Find \x036* (+?) (.*)
Replace \x036* <a href="search?user=\1">\1</a>\2
*should* do it, but I haven't tested.


Edit: Look at that, SMF replaces
Code: [Select]
</a> with [/url]. lol
Title: Re: OmnomIRC won't highlight with "/me"
Post by: ZippyDee on April 25, 2011, 04:47:12 am
Interesting. Any reason for using different control characters?

Edit: Look at that, SMF replaces
Code: [Select]
</a> with [/url]. lol
Lol wow...Does it do that for other tags too?

Title: Re: OmnomIRC won't highlight with "/me"
Post by: Netham45 on April 25, 2011, 04:47:40 am
\x03 is a color char. I'm not sending /me's with OmnomIRC, just a line with a color and the text.
Code: [Select]
:[email protected] PRIVMSG #omnimaga :\x036* Netham45 blah test

That's what it looks like raw.

(Well, true raw would be this:)
Code: [Select]
:[email protected] PRIVMSG #omnimaga :6* Netham45 blah test
Title: Re: OmnomIRC won't highlight with "/me"
Post by: ZippyDee on April 25, 2011, 04:50:28 am
Ahh, good point. No need to use a control code if omnom has already parsed it -.-
Title: Re: OmnomIRC won't highlight with "/me"
Post by: Netham45 on April 25, 2011, 04:52:03 am
Yea


Also, it -does- fail completely to parse /me messages sent from IRC with a highlight in 'em
Title: Re: OmnomIRC won't highlight with "/me"
Post by: DJ Omnimaga on April 26, 2011, 02:23:23 am
To have </a> remains as it is, you need to put it between [html] tags (admin-only for security reasons)
Title: Re: OmnomIRC won't highlight with "/me"
Post by: Netham45 on April 26, 2011, 03:00:48 am
I didn't get a chance to get to it today. D:


Code: [Select]
<[b][/b]/a>;
works too. :D
Title: Re: OmnomIRC won't highlight with "/me"
Post by: DJ Omnimaga on April 26, 2011, 03:17:57 am
wow I didn't know that.
Title: Re: OmnomIRC won't highlight with "/me"
Post by: Deep Toaster on May 03, 2011, 08:05:02 pm
Awesome, it highlights on the first word of my nick now :w00t: