Type |
Line |
Description |
|
13 |
cvs.meebey.net/atbs> and <http://cvs.meebey.net/phpbitch> |
|
17 |
pear.php.net/package/Net_SmartIRC/> |
|
21 |
www.meebey.net> |
|
25 |
www.gnu.org/licenses/lgpl.txt> |
|
42 |
------- PHP code ---------- |
|
58 |
www.gnu.org/copyleft/lesser.html LGPL License 2.1 |
|
59 |
pear.php.net/package/Net_SmartIRC |
|
398 |
can't stop using the global without potentially breaking BC |
|
402 |
the script is called from a browser, lets set default log destination |
|
403 |
to SMARTIRC_BROWSEROUT (makes browser friendly output) |
|
407 |
you'll want to pass an array that includes keys like: |
|
408 |
ModulePath, Debug, ChannelSyncing, AutoRetry, RunAsDaemon |
|
409 |
so we can call their setters here |
|
424 |
PHP allows $this->getChannel($param)->memberofobject, |
|
425 |
but we need to not break BC. |
|
903 |
prechecks |
|
947 |
we reconncted and don't want to destroy the old log entries |
|
1141 |
let's clean our channel array |
|
1149 |
let's clean our user array |
|
1175 |
remember in which channels we are joined |
|
1223 |
rejoin the channels |
|
1291 |
if we have extra commands to send, do it now |
|
1295 |
if we sent "ns auth" commands, we may need to resend our nick |
|
1302 |
</IRC methods> |
|
1615 |
if we're not connected, we can't listen, so return |
|
1620 |
before we listen... |
|
1622 |
see if any timehandler needs to be called |
|
1625 |
also let's send any queued messages |
|
1635 |
don't send them too fast |
|
1654 |
calculate selecttimeout |
|
1666 |
check the socket to see if data is waiting for us |
|
1667 |
this will trigger a warning when a signal is received |
|
1676 |
the socket got data to read |
|
1686 |
panic! panic! something went wrong! maybe received a signal. |
|
1693 |
no data on the socket |
|
1713 |
split up incoming lines, remove any empty ones and |
|
1714 |
trim whitespace off the rest |
|
1717 |
parse and handle them |
|
1723 |
building our data packet |
|
1726 |
kept for BC |
|
1728 |
parsing the message { |
|
1732 |
parse out the prefix |
|
1738 |
parse out the trailing |
|
1739 |
this is not == |
|
1745 |
parse out command and params |
|
1751 |
} |
|
1758 |
parse ident thingy |
|
1769 |
figure out what SMARTIRC_TYPE this message is |
|
1953 |
lets see if we have a messagehandler for it |
|
1976 |
if exists call internal method for the handling |
|
1986 |
if exists call user defined method for the handling |
|
2003 |
now the actionhandlers are coming |
|
2048 |
if we've done anything that didn't work and the connection is broken, |
|
2049 |
log it and fix it |
|
2096 |
precheck |
|
2134 |
precheck |
|
2300 |
is the module already loaded? |
|
2321 |
pray that there is no parse error, it will kill us! |
|
2366 |
looks like the module satisfies us, so instantiate it |
|
2368 |
we're using an old module_init style module |
|
2375 |
we're using a new __construct style module, which maintains its |
|
2376 |
own reference to the $irc client object it's being used on |
|
2379 |
we're using new style AND we have args to pass to the constructor |
|
2381 |
only one arg, so pass it as is |
|
2384 |
multiple args, so pass them in an array |
|
2437 |
<protected methods> |
|
2455 |
lets update the existing user |
|
2558 |
writing to the socket failed, means the connection is broken |
|
2605 |
remove the user from all channels |
|
2608 |
loop through all channels |
|
2611 |
loop through all user in this channel |
|
2613 |
found him, kill him |
|
2623 |
die! |
|
2679 |
is this even needed/used? |