Omnimaga
Omnimaga => Discontinued => Our Projects => OmnomIRC Development => Topic started 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.
-
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.
-
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*
-
What about links on omnom nicks for /me commands?
-
What about links on omnom nicks for /me commands?
I gotta come up with a way to do that, but should happen eventually. :P
-
Is it difficult to add that in? I guess it all depends on how you implemented it for normal messages...
-
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.
-
/^\x01ACTION.*$/ should do the trick to catch a /me command, shouldn't it?
-
Omnom ones are sent differently.
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 </a>
with [/url]. lol
-
Interesting. Any reason for using different control characters?
Edit: Look at that, SMF replaces </a>
with [/url]. lol
Lol wow...Does it do that for other tags too?
-
\x03 is a color char. I'm not sending /me's with OmnomIRC, just a line with a color and the text.
:[email protected] PRIVMSG #omnimaga :\x036* Netham45 blah test
That's what it looks like raw.
(Well, true raw would be this:)
:[email protected] PRIVMSG #omnimaga :6* Netham45 blah test
-
Ahh, good point. No need to use a control code if omnom has already parsed it -.-
-
Yea
Also, it -does- fail completely to parse /me messages sent from IRC with a highlight in 'em
-
To have </a> remains as it is, you need to put it between [html] tags (admin-only for security reasons)
-
I didn't get a chance to get to it today. D:
<[b][/b]/a>;
works too. :D
-
wow I didn't know that.
-
Awesome, it highlights on the first word of my nick now :w00t: