Skip to content

Conversation

@martindilling
Copy link

No description provided.

martindilling and others added 13 commits February 9, 2016 22:43
Mostly direct translation of the Augmented BNF for an IRC message to
a giant regex.
It takes a raw IRC message and returns an array with:

    `prefix` // The whole prefix string
    `nickname` // The nickname from the prefix
    `username` // The username from the prefix
    `hostname` // The hostname from the prefix
    `servername` // The servername from the prefix
    `command` // The command
    `params` // The parameters

I'm pretty sure this can be optimised quite a lot, but for now it parses
following the specification and it works ;)
Needed to explicitly set the minimum version we need of the
phpunit/php-token-stream package. Probably somewhere in the phpunit
dependency tree it have specified a minimum version of that package
that doesn't support PHP 7.
}

ob_start();
var_dump($message);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh-oh here be dragons.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is there so we're able to see what the incoming messages look like.
It's written out in the terminal where you're running the bot ;)

@garethellis36
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants