Zehra | Would anyone have some recommendations of parsing through the list? I am using string tokens, however when I try to implement more than newline in filtering, entries are skipped. | 00:43 |
---|---|---|
*** Foo_man_choo <Foo_man_choo!~spldart@c-73-155-11-165.hsd1.tx.comcast.net> has joined #bzflag | 00:46 | |
blast007 | I don't know what you mean by "newline in filtering" | 01:07 |
blast007 | parse each line.. that's not a hard concept | 01:08 |
blast007 | it's a pretty basic line of text, split with spaces. just make sure to limit how many parts you split it into. | 01:09 |
blast007 | hardest part of parsing it is the hex values | 01:09 |
blast007 | there should be a PHP and maye a Perl or Python example in our source | 01:09 |
blast007 | maybe* | 01:09 |
Zehra | Here's what I'm doing: https://pastebin.com/D4fYHirn | 01:14 |
Zehra | I know it works parsing per "server", but not when trying to parse per-server values. | 01:16 |
Zehra | I know there's a trick to it, but I'm not sure what it is. | 01:18 |
blast007 | use the explode function | 01:18 |
Zehra | Will do. | 01:20 |
blast007 | list($hostport, $proto, $hex, $ip, $title) = explode(' ', rtrim($line), 5); // I think | 01:20 |
blast007 | (and then you can check if $hostport has a port attached or not, and you can pull that out if it exists, or default to 5154) | 01:21 |
Zehra | Thanks blast007. | 01:23 |
*** Zehra <Zehra!~Zehra@unaffiliated/zehra> has quit IRC (Quit: Gone for now.) | 02:24 | |
*** spldart <spldart!~spldart@bzflag/contributor/spldart> has quit IRC (Quit: Leaving) | 02:37 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has joined #bzflag | 03:13 | |
BZNotify | bzflag: macsforme commented on issue #72 "Joystick axis range" (https://git.io/Je2EI): Looking at this again, I think the solution is to detach the joysti... | 15:08 |
*** disco- <disco-!~disco@unaffiliated/disco-> has quit IRC (Remote host closed the connection) | 15:48 | |
*** disco- <disco-!~disco@unaffiliated/disco-> has joined #bzflag | 15:53 | |
BZNotify | bzflag: macsforme commented on issue #82 "Color blindness friendliness" by allejo (2.6 Release - https://git.io/Je2aK): This is loosely related to #12. | 18:26 |
moriah | ~allejo++ | 19:35 |
*** spldart <spldart!~spldart@bzflag/contributor/spldart> has joined #bzflag | 23:18 | |
*** ChanServ sets mode: +v spldart | 23:18 |
Generated by irclog2html.py 2.17.3.dev0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!