From 8338b009d43b6f21bcab533e88a458bdd485aa7d Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 18 Mar 2014 14:55:34 +0000 Subject: [PATCH] Properly handle preserve-whitespace; use modulelaucher_subpattern regex to correct whitespace --- PBot/FactoidModuleLauncher.pm | 3 +- PBot/Factoids.pm | 5 +- PBot/VERSION.pm | 4 +- data/factoids | 439 +++++++++++++++++----------------- 4 files changed, 227 insertions(+), 224 deletions(-) diff --git a/PBot/FactoidModuleLauncher.pm b/PBot/FactoidModuleLauncher.pm index 0610b2e8..925b3886 100644 --- a/PBot/FactoidModuleLauncher.pm +++ b/PBot/FactoidModuleLauncher.pm @@ -63,7 +63,6 @@ sub execute_module { $arguments =~ s/\$channel/$from/g; $arguments = quotemeta($arguments); - $arguments =~ s/\\\s/ /g; if(exists $self->{pbot}->factoids->factoids->hash->{$channel}->{$trigger}->{modulelauncher_subpattern}) { if($self->{pbot}->factoids->factoids->hash->{$channel}->{$trigger}->{modulelauncher_subpattern} =~ m/s\/(.*?)\/(.*)\//) { @@ -81,7 +80,7 @@ sub execute_module { $arguments =~ s/\$9/$i/g; $arguments =~ s/\$`/$before/g; $arguments =~ s/\$'/$after/g; - $self->{pbot}->logger->log("arguments subpattern: $arguments\n"); + #$self->{pbot}->logger->log("arguments subpattern: $arguments\n"); } else { $self->{pbot}->logger->log("Invalid module substitution pattern [" . $self->{pbot}->factoids->factoids->hash->{$channel}->{$trigger}->{modulelauncher_subpattern}. "], ignoring.\n"); } diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index c634c2ac..528f3f13 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -388,7 +388,10 @@ sub interpreter { $self->factoids->hash->{$channel}->{$keyword}->{last_referenced_on} = gettimeofday; $self->factoids->hash->{$channel}->{$keyword}->{last_referenced_in} = $from || "stdin"; - return $ref_from . $self->{factoidmodulelauncher}->execute_module($from, $tonick, $nick, $user, $host, "$keyword $arguments", $keyword, $arguments, 1); + my $preserve_whitespace = $self->factoids->hash->{$channel}->{$keyword}->{preserve_whitespace}; + $preserve_whitespace = 0 if not defined $preserve_whitespace; + + return $ref_from . $self->{factoidmodulelauncher}->execute_module($from, $tonick, $nick, $user, $host, "$keyword $arguments", $keyword, $arguments, $preserve_whitespace); } elsif($self->factoids->hash->{$channel}->{$keyword}->{type} eq 'text') { $self->{pbot}->logger->log("Found factoid\n"); diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index f6b61158..61be730a 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,8 +13,8 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 529, - BUILD_DATE => "2014-03-15", + BUILD_REVISION => 530, + BUILD_DATE => "2014-03-18", }; 1; diff --git a/data/factoids b/data/factoids index c5f90fca..0cfb69a6 100644 --- a/data/factoids +++ b/data/factoids @@ -1153,12 +1153,12 @@ type: text action: /say Undefined behavior is behavior for which the C standard does not impose any requirements. This is to allow C the freedom to be implemented on various systems that do not share the same architecture. Programs invoking undefined behavior may appear to compile and even run without errors at first, only to fail on another system, or even at a later time. If you want to write reliable code, don't use such behaviors. created_on: 1297808324.11723 enabled: 1 -last_referenced_in: iron_houzi -last_referenced_on: 1392475753.29988 +last_referenced_in: ##c +last_referenced_on: 1394549458.31951 owner: pragma_ rate_limit: 15 -ref_count: 78 -ref_user: iron_houzi!~houzi@cm-84.211.65.20.getinternet.no +ref_count: 82 +ref_user: aemquo!~UN@unaffiliated/aemquo type: text @@ -1540,12 +1540,12 @@ created_on: 1104378101 edited_by: edk!edk@unaffiliated/edk edited_on: 1387226590.5671 enabled: 1 -last_referenced_in: ##c -last_referenced_on: 1393016557.65501 +last_referenced_in: rob`` +last_referenced_on: 1394624356.24783 owner: twkm rate_limit: 15 -ref_count: 709 -ref_user: kesselhaus!~kesselhau@ip-109-43-207-86.web.vodafone.de +ref_count: 710 +ref_user: rob``!~rob@ersc131.goemobile.de type: text @@ -1647,11 +1647,11 @@ action: /say C Aphorism 1: The questioner's first description of the problem/que created_on: 1379514943.76622 enabled: 1 last_referenced_in: ##c -last_referenced_on: 1392322408.42892 +last_referenced_on: 1394765588.55606 owner: pragma-!~chaos@unaffiliated/pragmatic-chaos rate_limit: 15 -ref_count: 21 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 22 +ref_user: fisted!~fisted@unaffiliated/fisted type: text @@ -1752,12 +1752,12 @@ type: text action: /say C Aphorism 2: All examples given by the questioner will be incomplete, misleading, broken, wrong, and/or not representative of the actual question. created_on: 1379515096.85361 enabled: 1 -last_referenced_in: nitrix -last_referenced_on: 1390862758.96291 +last_referenced_in: ##c +last_referenced_on: 1394765614.18996 owner: pragma-!~chaos@unaffiliated/pragmatic-chaos rate_limit: 15 -ref_count: 9 -ref_user: nitrix!~nitrix@unaffiliated/nitrix +ref_count: 10 +ref_user: newguise1234!443d9910@gateway/web/freenode/ip.68.61.153.16 type: text @@ -1850,12 +1850,12 @@ type: text action: /say C89/C90 draft: http://flash-gordon.me.uk/ansi.c.txt or http://web.archive.org/web/20050207005628/http://dev.unicals.com/papers/c89-draft.html - C Overview: http://en.wikipedia.org/wiki/C_programming created_on: 1236861685 enabled: 1 -last_referenced_in: pragma- -last_referenced_on: 1393946502.21155 +last_referenced_in: csviu +last_referenced_on: 1394800687.79019 owner: Wulf4 rate_limit: 15 -ref_count: 98 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 100 +ref_user: csviu!mf@dog.thdo.woaf.net type: text @@ -1915,12 +1915,12 @@ type: text action: /say C99 + TC1,2,3 working paper: http://open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf - C99 Overview: http://en.wikipedia.org/wiki/C99 - Changes from C89/C90: http://home.datacomm.ch/t_wolf/tw/c/c9x_changes.html - C Overview: http://en.wikipedia.org/wiki/C_programming created_on: 1325645512.48533 enabled: 1 -last_referenced_in: pragma- -last_referenced_on: 1393877093.52864 +last_referenced_in: ##c +last_referenced_on: 1394534266.93096 owner: pragma_ rate_limit: 15 -ref_count: 107 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 108 +ref_user: cousteau!~cousteau@138.100.74.81 type: text @@ -2368,11 +2368,11 @@ type: text action: /call std created_on: 1344698408.76136 enabled: 1 -last_referenced_on: 1392191205.67631 +last_referenced_on: 1394800565.68587 owner: pragma- rate_limit: 15 -ref_count: 71 -ref_user: fizzie!fis@unaffiliated/fizzie +ref_count: 73 +ref_user: csviu!mf@dog.thdo.woaf.net type: text @@ -2583,11 +2583,11 @@ type: text action: /call c2english created_on: 1296182114.77211 enabled: 1 -last_referenced_on: 1393884023.99775 +last_referenced_on: 1394781893.62936 owner: pragma_ rate_limit: 0 -ref_count: 1736 -ref_user: issphp!2e1356fe@gateway/web/freenode/ip.46.19.86.254 +ref_count: 1742 +ref_user: fizzie!fis@unaffiliated/fizzie type: text @@ -2871,11 +2871,11 @@ action: /say There is no "global" scope in C. There are four kinds of scopes: fu created_on: 1271966015 enabled: 1 last_referenced_in: ##c -last_referenced_on: 1390066160.5476 +last_referenced_on: 1394732426.45989 owner: n00p rate_limit: 15 -ref_count: 60 -ref_user: Vigud!sid1143@gateway/web/irccloud.com/x-xmdmlakivzloryqr +ref_count: 61 +ref_user: fisted!~fisted@unaffiliated/fisted type: text @@ -3138,12 +3138,12 @@ type: text action: The C Programming Language, 2nd edition, by Kernighan and Ritchie, http://cm.bell-labs.com/cm/cs/cbook/ - be sure to see the errata as well, at http://cm.bell-labs.com/cm/cs/cbook/2ediffs.html created_on: 1278668183.21606 enabled: 1 -last_referenced_in: issphp -last_referenced_on: 1393879056.91147 +last_referenced_in: ##c +last_referenced_on: 1394671040.76455 owner: Chris rate_limit: 15 -ref_count: 484 -ref_user: issphp!2e1356fe@gateway/web/freenode/ip.46.19.86.254 +ref_count: 486 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -3173,10 +3173,12 @@ type: text action: /say No refunds. created_on: 1385866053.26907 enabled: 1 +last_referenced_in: addatoo +last_referenced_on: 1394739744.21228 owner: addatoo!~daem0n@c-98-204-134-144.hsd1.md.comcast.net rate_limit: 15 -ref_count: 0 -ref_user: nobody +ref_count: 1 +ref_user: addatoo!~daem0n@107.161.29.179 type: text @@ -3411,15 +3413,17 @@ ref_user: n00p type: text -action: /say That is not a C issue. This channel exists for discussion of the Standard C Language itself; not tools such as Makefiles, IDEs, compilers (see ##workingset for these things) or random libraries (including OS-specific ones such as POSIX or Windows; see ##posix or #winapi), nor for installation support for a particular piece of software. +action: /say That is not a C issue. This channel exists for discussion of the Standard C Language itself; not tools such as Makefiles, IDEs, compilers (see ##workingset for these things) or random libraries (including OS-specific ones such as POSIX or Windows; see ##posix or #winapi), nor for support for a particular piece of software. created_on: 1273154639 +edited_by: pragma-!~chaos@unaffiliated/pragmatic-chaos +edited_on: 1394843264.33928 enabled: 1 last_referenced_in: ##c -last_referenced_on: 1393864644.28336 +last_referenced_on: 1394843185.70473 owner: n00p rate_limit: 15 -ref_count: 170 -ref_user: rob``!~rob@gtng-4db0469a.pool.mediaWays.net +ref_count: 172 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -3440,11 +3444,11 @@ type: text action: region of data storage in the execution environment, the contents of which can represent values created_on: 1240461189 enabled: 1 -last_referenced_in: ##c -last_referenced_on: 1391983387.15098 +last_referenced_in: nitrix +last_referenced_on: 1394508941.7714 owner: Wulf_ rate_limit: 15 -ref_count: 29 +ref_count: 30 ref_user: nitrix!~nitrix@unaffiliated/nitrix type: text @@ -3558,11 +3562,11 @@ type: text action: /call paren created_on: 1390001510.89311 enabled: 1 -last_referenced_on: 1393765543.97706 +last_referenced_on: 1394509223.74064 owner: pragma-!~chaos@unaffiliated/pragmatic-chaos rate_limit: 15 -ref_count: 9 -ref_user: fizzie!fis@unaffiliated/fizzie +ref_count: 13 +ref_user: nitrix!~nitrix@unaffiliated/nitrix type: text @@ -3705,12 +3709,12 @@ type: text action: very important: http://clc-wiki.net/wiki/C_community:comp.lang.c:Portability_attitude created_on: 1263936716 enabled: 1 -last_referenced_in: sickle -last_referenced_on: 1339709650.56235 +last_referenced_in: nitrix +last_referenced_on: 1394510054.94546 owner: n00p rate_limit: 15 -ref_count: 8 -ref_user: sickle +ref_count: 9 +ref_user: nitrix!~nitrix@unaffiliated/nitrix type: text @@ -3940,12 +3944,12 @@ type: text action: a storage-class specifier for an object that suggests that access for the object be as fast as possible. The extent to which the suggestion is effective is implementation defined. Whether or not addressable storage is actually used, the address of any part of an object declared with storage-class specifier register cannot be computed. created_on: 1107636580 enabled: 1 -last_referenced_in: cousteau -last_referenced_on: 1387741197.78784 +last_referenced_in: maxxe +last_referenced_on: 1394469339.29469 owner: pragma_ rate_limit: 15 -ref_count: 22 -ref_user: cousteau!~cousteau@80.174.59.30.dyn.user.ono.com +ref_count: 23 +ref_user: maxxe!~maxxe@unaffiliated/maxxe type: text @@ -4008,12 +4012,12 @@ type: text action: a type qualifier, which may only be used with a pointer type, and which requires that objects referenced through such a pointer must be made through a single pointer value, i.e., no aliases / pointers into other parts of the object are allowed created_on: 1105427254 enabled: 1 -last_referenced_in: cousteau -last_referenced_on: 1385138450.1114 +last_referenced_in: ##c +last_referenced_on: 1394767167.86561 owner: twkm rate_limit: 15 -ref_count: 15 -ref_user: cousteau!~cousteau@138.100.74.81 +ref_count: 17 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -4394,11 +4398,11 @@ action: /say C89/C90 draft: http://flash-gordon.me.uk/ansi.c.txt - C99 + TC1,2,3 created_on: 1249578326 enabled: 1 last_referenced_in: ##c -last_referenced_on: 1393102448.20949 +last_referenced_on: 1394480950.79927 owner: kate` rate_limit: 15 -ref_count: 507 -ref_user: Wulf!~Wulf@unaffiliated/wulf +ref_count: 508 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -4428,12 +4432,12 @@ type: text action: /say For a list of links to C standards, use the `standard` factoid; for citing the C99 standard, use `c99std`; for citing the C11 standard, use `c11std` created_on: 1360056405.36738 enabled: 1 -last_referenced_in: ##c -last_referenced_on: 1393102436.72862 +last_referenced_in: csviu +last_referenced_on: 1394800565.69654 owner: pragma- rate_limit: 15 -ref_count: 60 -ref_user: Wulf!~Wulf@unaffiliated/wulf +ref_count: 63 +ref_user: csviu!mf@dog.thdo.woaf.net type: text @@ -4882,12 +4886,12 @@ type: text action: /say A source file together with all the headers and source files included is known as a preprocessing translation unit . After preprocessing, a preprocessing translation unit is called a translation unit. The separate translation units of a program communicate by (for example) calls to functions whose identifiers have external linkage, manipulation of objects whose identifiers have external linkage, or manipulation of data files. created_on: 1345338450.31284 enabled: 1 -last_referenced_in: wlhlm -last_referenced_on: 1374271762.43454 +last_referenced_in: ##c +last_referenced_on: 1394721606.07016 owner: pragma- rate_limit: 15 -ref_count: 9 -ref_user: wlhlm +ref_count: 10 +ref_user: fisted!~fisted@unaffiliated/fisted type: text @@ -4982,12 +4986,12 @@ created_on: 1384408762.00882 edited_by: nitrix!~nitrix@unaffiliated/nitrix edited_on: 1384408829.03297 enabled: 1 -last_referenced_in: ##c-unregistered -last_referenced_on: 1392362585.39216 +last_referenced_in: maxxe +last_referenced_on: 1394469318.14574 owner: nitrix!~nitrix@unaffiliated/nitrix rate_limit: 15 -ref_count: 38 -ref_user: nitrix!~nitrix@unaffiliated/nitrix +ref_count: 39 +ref_user: maxxe!~maxxe@unaffiliated/maxxe type: text @@ -8441,12 +8445,12 @@ action: /me $eat_adverbs $eat_actions its $snacks. action_with_args: /me gives $args a $sizes $snacks. created_on: 1174693123 enabled: 1 -last_referenced_in: dtsf -last_referenced_on: 1393106613.04013 +last_referenced_in: ##c +last_referenced_on: 1394683275.67506 owner: pragma_ rate_limit: 15 -ref_count: 333 -ref_user: dtsf!~dtsf@212.83.151.52 +ref_count: 335 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -8558,10 +8562,10 @@ action: c11std.pl created_on: 1326727233.54048 enabled: 1 last_referenced_in: pragma- -last_referenced_on: 1393959075.38608 +last_referenced_on: 1395129440.57563 owner: pragma_ rate_limit: 0 -ref_count: 1141 +ref_count: 1153 ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: module @@ -8569,23 +8573,23 @@ type: module action: c2english.pl created_on: 1296182059.70458 enabled: 1 -last_referenced_in: ##c -last_referenced_on: 1393884024.02049 +last_referenced_in: fizzie +last_referenced_on: 1394781893.6525 owner: pragma_ rate_limit: 0 -ref_count: 1745 -ref_user: issphp!2e1356fe@gateway/web/freenode/ip.46.19.86.254 +ref_count: 1751 +ref_user: fizzie!fis@unaffiliated/fizzie type: module action: c99std.pl created_on: 1270956236 enabled: 1 -last_referenced_in: ##c -last_referenced_on: 1393889337.92296 +last_referenced_in: ##c-unregistered +last_referenced_on: 1394808565.27052 owner: pragma_ rate_limit: 0 -ref_count: 2932 +ref_count: 2944 ref_user: nitrix!~nitrix@unaffiliated/nitrix type: module @@ -8708,11 +8712,11 @@ created_on: 1272176634 edited_by: pragma-!~chaos@unaffiliated/pragmatic-chaos edited_on: 1393967703.12375 enabled: 1 -last_referenced_on: 1393967711.47421 +last_referenced_on: 1395135957.86614 owner: pragma_ preserve_whitespace: 1 rate_limit: 4 -ref_count: 37763 +ref_count: 38033 ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -8720,11 +8724,11 @@ type: text action: /call codepad $nick created_on: 1269788333 enabled: 1 -last_referenced_on: 1391654526.92871 +last_referenced_on: 1395137341.63281 owner: pragma_ rate_limit: 15 -ref_count: 1694 -ref_user: Maxdamantus!~Maxdamant@2001:470:f078::dead:beef:cafe +ref_count: 1706 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -8766,10 +8770,10 @@ type: text action: /call factchange created_on: 1277259441.33026 enabled: 1 -last_referenced_on: 1393967703.11071 +last_referenced_on: 1394843264.33191 owner: pbot3 rate_limit: 15 -ref_count: 238 +ref_count: 246 ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -8866,13 +8870,13 @@ type: text action: codepad.pl created_on: 1269788272 enabled: 1 -last_referenced_in: maxdamantus -last_referenced_on: 1391654526.94624 -modulelauncher_subpattern: s/([^ ]+)\s+(.*)/$1 '$2'/ +last_referenced_in: pragma- +last_referenced_on: 1395137341.65242 +modulelauncher_subpattern: s/(\S+)\\ /$1 / owner: pragma_ rate_limit: 1 -ref_count: 2235 -ref_user: Maxdamantus!~Maxdamant@2001:470:f078::dead:beef:cafe +ref_count: 2247 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: module @@ -8974,10 +8978,12 @@ action: compiler_client.pl created_on: 1291939583.25391 enabled: 1 last_referenced_in: pragma- -last_referenced_on: 1393967711.49546 +last_referenced_on: 1395135957.88641 +modulelauncher_subpattern: s/(\S+)\\ (\S+)\\ /$1 $2 / owner: pragma_ +preserve_whitespace: 1 rate_limit: 0 -ref_count: 30604 +ref_count: 30874 ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: module @@ -8987,7 +8993,9 @@ created_on: 1329861004.65089 enabled: 1 last_referenced_in: caze last_referenced_on: 1393297892.77093 +modulelauncher_subpattern: s/(\S+)\\ (\S+)\\ /$1 $2 / owner: pragma_ +preserve_whitespace: 1 rate_limit: 0 ref_count: 3898 ref_user: CaZe!~caze@unaffiliated/caze @@ -9009,12 +9017,12 @@ type: module action: compliment created_on: 1255395343 enabled: 1 -last_referenced_in: ##c-unregistered -last_referenced_on: 1392219450.49704 +last_referenced_in: zrecursive +last_referenced_on: 1394870688.66703 owner: pragma_ rate_limit: 0 -ref_count: 176 -ref_user: nitrix!~nitrix@unaffiliated/nitrix +ref_count: 189 +ref_user: zRecursive!~czsq888@183.12.92.24 type: module @@ -9045,10 +9053,10 @@ type: text action: /call botsnack created_on: 1195333486 enabled: 1 -last_referenced_on: 1375366378.63409 +last_referenced_on: 1394436872.1546 owner: pragma_ rate_limit: 15 -ref_count: 60 +ref_count: 61 ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -9293,12 +9301,12 @@ type: text action: dict.org.pl created_on: 1269777616 enabled: 1 -last_referenced_in: pragma- -last_referenced_on: 1393204989.4934 +last_referenced_in: zrecursive +last_referenced_on: 1394785677.79654 owner: pragma_ rate_limit: 0 -ref_count: 697 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 699 +ref_user: zRecursive!~czsq888@183.12.39.211 type: module @@ -9527,12 +9535,12 @@ action: expand_macros.pl add_nick: 1 created_on: 1385615028.69553 enabled: 1 -last_referenced_in: pragma- -last_referenced_on: 1393928537.4103 +last_referenced_in: zrecursive +last_referenced_on: 1394786287.60666 owner: pragma-!~chaos@unaffiliated/pragmatic-chaos rate_limit: 0 -ref_count: 55 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 58 +ref_user: zRecursive!~czsq888@183.12.39.211 type: module @@ -9844,23 +9852,23 @@ type: text action: gdefine.pl created_on: 1236819675 enabled: 1 -last_referenced_in: pragma- -last_referenced_on: 1387450550.76595 +last_referenced_in: zrecursive +last_referenced_on: 1394785742.7949 owner: pragma_ rate_limit: 15 -ref_count: 454 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 455 +ref_user: zRecursive!~czsq888@183.12.39.211 type: module action: /call gdefine created_on: 1255125488 enabled: 1 -last_referenced_on: 1387450550.74623 +last_referenced_on: 1394785742.77513 owner: pragma_ rate_limit: 15 -ref_count: 358 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 359 +ref_user: zRecursive!~czsq888@183.12.39.211 type: text @@ -10102,24 +10110,24 @@ type: regex action: /say C does not require implementations to use stacks or heaps. Please refer to the actually defined storage durations, which are four: allocated, automatic, thread and static. created_on: 1311728565.05284 enabled: 1 -last_referenced_in: ##c-unregistered -last_referenced_on: 1392219171.70446 +last_referenced_in: ##c +last_referenced_on: 1394434723.62782 owner: guidj0s rate_limit: 15 -ref_count: 18 -ref_user: nitrix!~nitrix@unaffiliated/nitrix +ref_count: 19 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text action: /say Please do not greet the channel. It adds no value to the conversation, and highlights the channel tab for no good reason. If everybody greeted the channel and responded to greetings then the noise-to-signal ratio would be overwhelming. created_on: 1371341579.36823 enabled: 1 -last_referenced_in: jack_rabbit -last_referenced_on: 1392347249.03743 +last_referenced_in: vialas_ +last_referenced_on: 1394779483.76324 owner: pragma- rate_limit: 15 -ref_count: 25 -ref_user: jack_rabbit!~jack_rabb@c-50-148-124-212.hsd1.il.comcast.net +ref_count: 26 +ref_user: Vialas_!~Vialas@202.90.207.122 type: text @@ -10127,12 +10135,12 @@ action: /say To learn all about me, see http://www.iso-9899.info/wiki/Candide action_with_args: /say To learn all about $args, see http://www.iso-9899.info/wiki/Candide#$args created_on: 1109792986 enabled: 1 -last_referenced_in: ##c -last_referenced_on: 1393933113.36018 +last_referenced_in: pragma- +last_referenced_on: 1394868957.17829 owner: NeverDream rate_limit: 0 -ref_count: 1226 -ref_user: dozn!~dozn@24-207-52-240.eastlink.ca +ref_count: 1234 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -10163,10 +10171,10 @@ action: /say $hi_phrases, $args created_on: 1109044278 enabled: 1 last_referenced_in: pragma- -last_referenced_on: 1393328092.32313 +last_referenced_on: 1395129388.58294 owner: pragma_ rate_limit: 15 -ref_count: 1412 +ref_count: 1431 ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -10277,12 +10285,12 @@ type: text action: /say $how_answers created_on: 1276845773 enabled: 1 -last_referenced_in: pragma- -last_referenced_on: 1390637950.70917 +last_referenced_in: ##c +last_referenced_on: 1394785072.29998 owner: pragma_ rate_limit: 0 -ref_count: 127 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 129 +ref_user: zRecursive!~czsq888@183.12.39.211 type: text @@ -10462,10 +10470,10 @@ type: text action: /call factinfo created_on: 1277259101.38088 enabled: 1 -last_referenced_on: 1393928673.93532 +last_referenced_on: 1394772542.47648 owner: pbot3 rate_limit: 15 -ref_count: 238 +ref_count: 239 ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -10473,12 +10481,12 @@ type: text action: insult.pl created_on: 1236819209 enabled: 1 -last_referenced_in: ##c -last_referenced_on: 1390851289.48484 +last_referenced_in: pragma- +last_referenced_on: 1394848054.73275 owner: pragma_ rate_limit: 0 -ref_count: 706 -ref_user: cousteau!~cousteau@138.100.74.81 +ref_count: 708 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: module @@ -11012,12 +11020,12 @@ type: text action: man.pl created_on: 1107137901 enabled: 1 -last_referenced_in: ##c -last_referenced_on: 1393945292.18739 +last_referenced_in: zrecursive +last_referenced_on: 1394786410.99782 owner: pragma_ rate_limit: 15 -ref_count: 1362 -ref_user: cousteau!~cousteau@138.100.74.81 +ref_count: 1364 +ref_user: zRecursive!~czsq888@183.12.39.211 type: module @@ -11056,12 +11064,12 @@ type: text action: math.pl created_on: 1105953711 enabled: 1 -last_referenced_in: #pbot2 -last_referenced_on: 1386120183.50555 +last_referenced_in: zrecursive +last_referenced_on: 1394786010.71291 owner: pragma_ rate_limit: 15 -ref_count: 360 -ref_user: mayonnaise!4b41c16d@gateway/web/freenode/ip.75.65.193.109 +ref_count: 363 +ref_user: zRecursive!~czsq888@183.12.39.211 type: module @@ -11449,12 +11457,12 @@ created_on: 1384409686.31718 edited_by: pragma-!~chaos@unaffiliated/pragmatic-chaos edited_on: 1384410037.52574 enabled: 1 -last_referenced_in: pragma- -last_referenced_on: 1393929441.90755 +last_referenced_in: ##c +last_referenced_on: 1394509223.75531 owner: pragma-!~chaos@unaffiliated/pragmatic-chaos rate_limit: 0 -ref_count: 273 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 279 +ref_user: nitrix!~nitrix@unaffiliated/nitrix type: module @@ -11552,11 +11560,11 @@ type: text action: /call cc2 -lang=perl created_on: 1273693148 enabled: 1 -last_referenced_on: 1363130444.80109 +last_referenced_on: 1395136283.16125 owner: pragma_ rate_limit: 15 -ref_count: 53 -ref_user: pragma- +ref_count: 56 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -11622,11 +11630,11 @@ action: /say pong created_on: 1109821018 enabled: 1 last_referenced_in: cousteau -last_referenced_on: 1387139439.02347 +last_referenced_on: 1394462768.49517 owner: pragma_ rate_limit: 15 -ref_count: 104 -ref_user: cousteau!~cousteau@80.174.59.30.dyn.user.ono.com +ref_count: 106 +ref_user: cousteau!~cousteau@138.100.74.81 type: text @@ -11737,10 +11745,10 @@ created_on: 1384449408.94113 edited_by: pragma-!~chaos@unaffiliated/pragmatic-chaos edited_on: 1384449454.21196 enabled: 1 -last_referenced_on: 1393866486.82979 +last_referenced_on: 1394500899.83789 owner: pragma-!~chaos@unaffiliated/pragmatic-chaos rate_limit: 15 -ref_count: 141 +ref_count: 143 ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -11780,16 +11788,6 @@ ref_count: 5 ref_user: CaZe!~caze@174.136.103.226 type: text - -action: -> %s\n", x); -created_on: 1380551312.32789 -enabled: 1 -owner: CSy-n!~brody@119.15.74.140 -rate_limit: 15 -ref_count: 0 -ref_user: nobody -type: text - action: /call projectprocess created_on: 1180197626 @@ -11838,11 +11836,11 @@ type: text action: /call cc2 -lang=python created_on: 1276564725 enabled: 1 -last_referenced_on: 1350849899.98445 +last_referenced_on: 1395136309.29144 owner: pragma_ rate_limit: 15 -ref_count: 37 -ref_user: adnauseam +ref_count: 42 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -11889,11 +11887,11 @@ type: text action: /call topic created_on: 1258699991 enabled: 1 -last_referenced_on: 1392195374.08221 +last_referenced_on: 1394653153.45101 owner: pragma_ rate_limit: 0 -ref_count: 2079 -ref_user: rob``!~rob@gtng-4db04e62.pool.mediaWays.net +ref_count: 2082 +ref_user: dozn!~dozn@24-207-52-240.eastlink.ca type: text @@ -11902,12 +11900,12 @@ created_on: 1260876948 edited_by: pragma-!~chaos@unaffiliated/pragmatic-chaos edited_on: 1392194730.11958 enabled: 1 -last_referenced_in: pragma- -last_referenced_on: 1393838122.16039 +last_referenced_in: dozn +last_referenced_on: 1394653201.93358 owner: pragma_ rate_limit: 15 -ref_count: 29 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 31 +ref_user: dozn!~dozn@24-207-52-240.eastlink.ca type: text @@ -12257,11 +12255,11 @@ type: text action: /call cc2 -lang=ruby created_on: 1289051812.05396 enabled: 1 -last_referenced_on: 1289082683.49619 +last_referenced_on: 1394786267.91618 owner: pragma_ rate_limit: 15 -ref_count: 6 -ref_user: Asem +ref_count: 8 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -12292,12 +12290,12 @@ type: text action: /say $args created_on: 1251663502 enabled: 1 -last_referenced_in: pragma- -last_referenced_on: 1393967745.99187 +last_referenced_in: pbot3 +last_referenced_on: 1394787876.27719 owner: pragma_ rate_limit: 0 -ref_count: 814 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 816 +ref_user: pbot3!~pbot3@unaffiliated/pragma/bot/candide/x-109842 type: text @@ -12461,10 +12459,10 @@ type: regex action: /call factshow created_on: 1277259146.86343 enabled: 1 -last_referenced_on: 1393967768.1747 +last_referenced_on: 1394772557.84295 owner: pbot3 rate_limit: 15 -ref_count: 194 +ref_count: 197 ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -12742,11 +12740,11 @@ type: text action: /call hi created_on: 1297413792.81045 enabled: 1 -last_referenced_on: 1370733446.60219 +last_referenced_on: 1394776294.25649 owner: pragma_ rate_limit: 15 -ref_count: 17 -ref_user: richardi +ref_count: 18 +ref_user: candide!stdin@localhost type: text @@ -12901,11 +12899,11 @@ action: /say A testcase is a minimal compilable example exhibiting your symptoms created_on: 1249772768 enabled: 1 last_referenced_in: ##c -last_referenced_on: 1393704607.89977 +last_referenced_on: 1394737565.94432 owner: lemonade` rate_limit: 15 -ref_count: 795 -ref_user: fisted!~fisted@unaffiliated/fisted +ref_count: 796 +ref_user: dozn!~dozn@24-207-52-240.eastlink.ca type: text @@ -12991,12 +12989,12 @@ type: text action: /say POSIX Threads programming: https://computing.llnl.gov/tutorials/pthreads/ created_on: 1104460742 enabled: 1 -last_referenced_in: mhi^ -last_referenced_on: 1358516291.2816 +last_referenced_in: ##c +last_referenced_on: 1394598951.73211 owner: twkm rate_limit: 15 -ref_count: 24 -ref_user: mhi^ +ref_count: 25 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -13011,15 +13009,17 @@ ref_user: cousteau!~cousteau@80.174.59.30.dyn.user.ono.com type: text -action: /say "Try It And See" is a damaged philosophy that may lead to unportable code/undefined behavior. +action: /say "Try It And See" may work in other languages, but not in C due to the nature of undefined behavior/unportable code. Such coding-by-experimentation often leads to situations such as "But it worked fine earlier!" and/or "But it worked on my machine!" created_on: 1228985071 +edited_by: pragma-!~chaos@unaffiliated/pragmatic-chaos +edited_on: 1394432551.85143 enabled: 1 last_referenced_in: ##c -last_referenced_on: 1386788278.24048 +last_referenced_on: 1394432472.03905 owner: Spark rate_limit: 15 -ref_count: 50 -ref_user: Vigud!sid1143@gateway/web/irccloud.com/x-bfirweknjsnzwegn +ref_count: 54 +ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text @@ -13063,6 +13063,7 @@ created_on: 1258840021 enabled: 1 last_referenced_in: butterduckcake last_referenced_on: 1383573605.83764 +modulelauncher_subpattern: s/(\S+)\\ /$1 / owner: pragma_ rate_limit: 0 ref_count: 45 @@ -13118,12 +13119,12 @@ type: text action: random_quote.pl created_on: 1258699440 enabled: 1 -last_referenced_in: rob`` -last_referenced_on: 1392195374.11236 +last_referenced_in: dozn +last_referenced_on: 1394653153.47781 owner: pragma_ rate_limit: 0 -ref_count: 2105 -ref_user: rob``!~rob@gtng-4db04e62.pool.mediaWays.net +ref_count: 2108 +ref_user: dozn!~dozn@24-207-52-240.eastlink.ca type: module @@ -13400,8 +13401,8 @@ ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos type: text -action: /say PBot revision 501 2014-03-04 -created_on: 1393968046.58128 +action: /say PBot revision 529 2014-03-15 +created_on: 1395137291.29835 enabled: 1 last_referenced_in: lemonade` last_referenced_on: 1393639215.26177 @@ -13572,11 +13573,11 @@ type: text action: /call how created_on: 1236820003 enabled: 1 -last_referenced_on: 1390637950.6742 +last_referenced_on: 1394779497.61229 owner: pragma_ rate_limit: 15 -ref_count: 381 -ref_user: pragma-!~chaos@unaffiliated/pragmatic-chaos +ref_count: 382 +ref_user: Vialas_!~Vialas@202.90.207.122 type: text