-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.xml
931 lines (910 loc) · 34.7 KB
/
package.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
<name>Net_SmartIRC</name>
<channel>pear.php.net</channel>
<summary>Helps you communicate with IRC networks in whatever way you might need, whether in a CLI program or as part of a web page. Also well-suited for bot development.</summary>
<description>SmartIRC is your go-to library for interfacing with IRC networks. All you need is PHP 5.3 or later.
Full feature list:
-------------------------------------
- Fully object-oriented programmed
- Your bot class can be inline in the same file you call SmartIRC from, or included as an external file
- Every received IRC message is parsed into an object you can easily get information from
(containing the following info: rawmessage, from, nick, ident, host, type, params, message, channel)
- Make your bots using Action Handlers and Time Handlers, which register custom callbacks when various events happen or on time intervals, respectively – or, extend the Net_SmartIRC class to add (or override) handlers directly using individual server message types
- Flood protection which uses a send buffer with a queue that has 3 priority levels (high, medium, low) plus a bypass level (critical)
- Nick collision detection and handling
- Auto-retry during initial connection attempt
- Auto-reconnect if connection is lost, which will re-join to the channels it was in before
- Debugging/logging system with log levels (destination can be file, stdout, syslog or browserout)
- Supports PHP as old as 5.3.0
- Channel syncing (tracking of users/modes/topic etc in objects)
- Customizable CTCP VERSION reply
</description>
<lead>
<name>Mirco Bauer</name>
<user>meebey</user>
<email>[email protected]</email>
<active>no</active>
</lead>
<lead>
<name>Garrett Whitehorn</name>
<user>garrettw</user>
<email>[email protected]</email>
<active>yes</active>
</lead>
<lead>
<name>Amir Mohammad Saied</name>
<user>amir</user>
<email>[email protected]</email>
<active>no</active>
</lead>
<contributor>
<name>CHAILLAN Nicolas</name>
<user>nicos</user>
<email>[email protected]</email>
<active>no</active>
</contributor>
<date>2019-02-14</date>
<version>
<release>1.1.14</release>
<api>1.1.7</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Merge PR #10: (Composer fix) Added global keyword for $SMARTIRC_nreplycodes [diddledan]
</notes>
<contents>
<dir name="/">
<dir name="docs">
<dir name="HTML">
<dir name="media">
<dir name="images">
<dir name="TreeMenuJS">
<file name="branch.gif" role="doc" />
<file name="branchbottom.gif" role="doc" />
<file name="branchtop.gif" role="doc" />
<file name="Class.gif" role="doc" />
<file name="classFolder.gif" role="doc" />
<file name="Disk.gif" role="doc" />
<file name="file.png" role="doc" />
<file name="folder.gif" role="doc" />
<file name="FolderOpened.gif" role="doc" />
<file name="Functions.gif" role="doc" />
<file name="line.gif" role="doc" />
<file name="linebottom.gif" role="doc" />
<file name="minus.gif" role="doc" />
<file name="minusbottom.gif" role="doc" />
<file name="minustop.gif" role="doc" />
<file name="plus.gif" role="doc" />
<file name="plusbottom.gif" role="doc" />
<file name="plustop.gif" role="doc" />
</dir> <!-- /docs/HTML/media/images/TreeMenuJS -->
<file name="blank.png" role="doc" />
<file name="checkerboard.gif" role="doc" />
<file name="Class.gif" role="doc" />
<file name="classFolder.gif" role="doc" />
<file name="Constant.gif" role="doc" />
<file name="Constants.gif" role="doc" />
<file name="Constructor.gif" role="doc" />
<file name="Destructor.gif" role="doc" />
<file name="Disk.gif" role="doc" />
<file name="error.gif" role="doc" />
<file name="file.png" role="doc" />
<file name="FolderClosed.gif" role="doc" />
<file name="foldericon.png" role="doc" />
<file name="FolderOpened.gif" role="doc" />
<file name="Functions.gif" role="doc" />
<file name="GhostClass.gif" role="doc" />
<file name="I.png" role="doc" />
<file name="L.png" role="doc" />
<file name="leftbg.gif" role="doc" />
<file name="Lminus.png" role="doc" />
<file name="Lplus.png" role="doc" />
<file name="minus.gif" role="doc" />
<file name="msgError.gif" role="doc" />
<file name="msgFatalError.gif" role="doc" />
<file name="msgHint.gif" role="doc" />
<file name="msgInformation.gif" role="doc" />
<file name="msgWarning.gif" role="doc" />
<file name="openfoldericon.png" role="doc" />
<file name="pearlogo.gif" role="doc" />
<file name="plus.gif" role="doc" />
<file name="PrivateDataMember.gif" role="doc" />
<file name="PrivateMethod.gif" role="doc" />
<file name="PrivateProperty.gif" role="doc" />
<file name="ProtectedDataMember.gif" role="doc" />
<file name="ProtectedMethod.gif" role="doc" />
<file name="ProtectedProperty.gif" role="doc" />
<file name="PublicDataMember.gif" role="doc" />
<file name="PublicMethod.gif" role="doc" />
<file name="PublicProperty.gif" role="doc" />
<file name="spacer.gif" role="doc" />
<file name="spacer2.gif" role="doc" />
<file name="T.png" role="doc" />
<file name="Tminus.png" role="doc" />
<file name="Tplus.png" role="doc" />
<file name="Types.gif" role="doc" />
<file name="Variable.gif" role="doc" />
<file name="Vars.gif" role="doc" />
</dir> <!-- /docs/HTML/media/images -->
<dir name="lib">
<file name="classTree.js" role="doc" />
<file name="tab.webfx.css" role="doc" />
<file name="tabpane.js" role="doc" />
<file name="ua.js" role="doc" />
</dir> <!-- /docs/HTML/media/lib -->
<file name="background.png" role="doc" />
<file name="empty.png" role="doc" />
<file name="style.css" role="doc" />
<file name="TreeMenu.js" role="doc" />
</dir> <!-- /docs/HTML/media -->
<dir name="Net_SmartIRC">
<file name="mybot.html" role="doc" />
<file name="Net_SmartIRC.html" role="doc" />
<file name="Net_SmartIRC_actionhandler.html" role="doc" />
<file name="Net_SmartIRC_base.html" role="doc" />
<file name="Net_SmartIRC_channel.html" role="doc" />
<file name="Net_SmartIRC_channeluser.html" role="doc" />
<file name="Net_SmartIRC_data.html" role="doc" />
<file name="Net_SmartIRC_Error.html" role="doc" />
<file name="Net_SmartIRC_irccommands.html" role="doc" />
<file name="Net_SmartIRC_ircuser.html" role="doc" />
<file name="Net_SmartIRC_listenfor.html" role="doc" />
<file name="Net_SmartIRC_messagehandler.html" role="doc" />
<file name="Net_SmartIRC_timehandler.html" role="doc" />
<file name="Net_SmartIRC_user.html" role="doc" />
<file name="_SmartIRC-0.5.5_examples_example2_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_examples_example3_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_examples_example4_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_examples_example5_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_examples_example6_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_examples_example7_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_examples_example_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_SmartIRC_defines_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_SmartIRC_irccommands_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_SmartIRC_messagehandler_php.html" role="doc" />
<file name="_SmartIRC-0.5.5_SmartIRC_php.html" role="doc" />
</dir> <!-- /docs/HTML/Net_SmartIRC -->
<file name="classtrees_Net_SmartIRC.html" role="doc" />
<file name="elementindex.html" role="doc" />
<file name="elementindex_Net_SmartIRC.html" role="doc" />
<file name="errors.html" role="doc" />
<file name="index.html" role="doc" />
<file name="li_Net_SmartIRC.html" role="doc" />
<file name="ric_CHANGELOG.html" role="doc" />
<file name="ric_README.html" role="doc" />
</dir> <!-- /docs/HTML -->
<file name="DOCUMENTATION" role="doc" />
<file name="HOWTO" role="doc" />
<dir name="examples">
<file name="example.php" role="doc" />
<file name="example2.php" role="doc" />
<file name="example3.php" role="doc" />
<file name="example4.php" role="doc" />
<file name="example5.php" role="doc" />
<file name="example6.php" role="doc" />
<file name="example7.php" role="doc" />
</dir> <!-- /docs/examples -->
</dir> <!-- /docs -->
<dir name="Net">
<dir name="SmartIRC">
<file name="defines.php" role="php" />
<file name="irccommands.php" role="php" />
<file name="messagehandler.php" role="php" />
</dir> <!-- /Net/SmartIRC -->
<file name="SmartIRC.php" role="php" />
</dir> <!-- /Net -->
<file name="CREDITS" role="doc" />
<file name="FEATURES" role="doc" />
<file name="LICENSE" role="doc" />
<file name="README.md" role="doc" />
</dir> <!-- / -->
</contents>
<dependencies>
<required>
<php>
<min>5.3.0</min>
</php>
<pearinstaller>
<min>1.7.0</min>
</pearinstaller>
</required>
</dependencies>
<phprelease />
<changelog>
<release>
<version>
<release>0.2.5</release>
<api>0.2.5</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2002-09-02</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
v0.2.5
------
- improved socket handling
- bufferedsend fix
- new version number system
- cpu usage reduced
- added changelog file
</notes>
</release>
<release>
<version>
<release>0.2.6</release>
<api>0.2.6</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2002-10-12</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
v0.2.6
------
* phpSmartIRCclass.inc.php:
- phpSmartIRCclass.inc renamed to
phpSmartIRCclass.inc.php because of security reasons
- changed function_exists() to get_loaded_extensions() for
checking if the PHP build has real socket support
- log() changed to create Linux style formatted logs
- new methods for logging (daemon style)
log() for add log entries setlogdestination() can be STDOUT or FILE
setlogfile() sets the file
- changed received data processing in rawreceive()
* HOWTO:
- added a mini howto for using the class
* DOCUMENTATION:
- added class documentation of the project
* CREDITS:
- added credits file
</notes>
</release>
<release>
<version>
<release>0.3.0</release>
<api>0.3.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2002-10-23</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
v0.3.0
-----
* phpSmartIRCclass.inc.php:
- added "Ping? Pong!" log message for debugging
- added real linux/windows syslog logging
to setlogdestination().
- new method listen_for() makes it possible
to show irc related information on a homepage, like how many users
on a channel are.
* HOWTO:
- added how to run/call the selfwritten bot
* DOCUMENTATION:
- added (missing) explanation for new methods
* example2.php:
- new examplefile with the new listen_for() method
</notes>
</release>
<release>
<version>
<release>0.3.2</release>
<api>0.3.2</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2002-11-05</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
v0.3.2
------
* phpSmartIRCclass.inc.php:
- Replaced all quotes by single quote where possible for speedup.
- Added _disconnecttime for doing a clean IRC quit.
- Added Zend IDE style documentation for parameter variables types
and method descriptions.
- Spaces in nickname and username will be automatically removed.
- Nicknamecollisions are automatically detected and nickname will be
changed to nickname with 3 random numbers.
- New method nicknameuse().
- Fixed a serious fsock bug.
- Added new type TYPE_ERROR.
- Fixed wrong usage of & when calling methods with params that are
called by reference.
- Fixed a debug message "DEBUG: disconnected", now it will only
occur when debug mode is enabled.
- listen_for() will now do a quickdisconnect, for a big speedup.
- Changed logging system, now with debug levels, default is
DEBUG_NOTICE.
- Added benchmark system, now its possible to time things for doing
optimizations.
- New methods: benchmark(), benchmarktstart(), benchmarkend()
and show_benchmark() for the benchmark system
- Added microint(), for getting the microtime as float, needed for
the benchmarks.
- Added a couple of log() calls, for different debug levels.
- fsockets now runs in non blocking mode, because of broken?
getstatus for fsockets.
- Added mode() method, for chaning modes of a user or channel.
- Added op() and deop() method. Added ban() and unban() method
(thx for diff file to Peter Petermann).
* DOCUMENTATION:
- added documentation for new logging system
- added the whole DEBUG_* list
* HOWTO:
- changed parameter description for debug()
* example.php:
- replaced all quotes by singlequotes where possible.
- fixed wrong usage of message()
* example2.php:
- replaced all quotes by singlquotes where possible.
- added benchmark test to the example
</notes>
</release>
<release>
<version>
<release>0.4.0</release>
<api>0.4.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2002-11-26</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
v0.4.0
------
* phpSmartIRCclass.inc.php:
- fixed serious socket bug
The buffer of the socket got full because only 512 bytes were read at once,
which caused losing some IRC messages that are coming fast like the MOTD.
Now it will read 10240 bytes at once, and doesn't loose any IRC message.
- fixed sendbuffer
The sendbuffer will only be sent, when the class is fully connected and
registered on the IRC network. Before if a nickname collision happened,
all sent IRC commands from the buffer were ignored by the IRC server.
- fixed socket status
Socket handling is now compatible with PHP 4.3 dev.
- fixed $_nick
When the nickname got changed because of nickname is already in use,
$_nick will be updated. (thanks for the hint to Andreas Streichardt).
- fixed actionhandler ids (unregister caused that the other ids were changed).
- fixed TYPE_TOPIC to the right bitoperator value.
- added a reference to the IRC class in actionhandler callbacks
WARNING: all user writtin methods have to be changed!!
method( &$data ) _has to be changed_ to method( &$irc, &$data )
If you don't change those, your IRC scripts will _not_ work anymore!
- changed internal methodnames to _methodname
- changed sendbuffer
Now it uses configurable senddelay, instead of static 2 messages
per second (send flood protection).
- changed TYPEs
All TYPE_* are now bitwise constants, register_actionhandler() can now
react to more than one message type.
- added TYPE_ACTION for those common /me messages.
- added timeevents Added method register_timehandler()
unregister_timeid() and reordertimehandler(). Those timehandler
can be used to call methods in specified intervalls, e.g. for
timeevents. Added needed class CphpSmartIRCclass_timehandler.
- moved all IRC related defines to defines.inc.php.
- changed if() elseif() structures where possible to switch() for
clearer/faster code.
- added more debug messages for actionhandler.
- added unregister_actionhandler() and unregister_actionid() method.
Also added needed reorderactionhandler(), which is called after an
unregister methods was called.
- added $data->channel to actionhandler callback.
* defines.inc.php:
- initial import.
- now all IRC related defines are now in this file instead of
phpSmartIRCclass.inc.php.
* DOCUMENTATION:
- updated/added methods description
* example.php:
- changed user function parameter to new style ( &$irc and &$data ).
- added TYPE_NOTICE to query_test example.
</notes>
</release>
<release>
<version>
<release>0.5.0</release>
<api>0.5.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2003-01-07</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
v0.5.0
------
fixes:
- fixed critical bug in the main _rawreceive() for() loop, messages were lost.
changes:
- License changed from GPL to LGPL.
- updated in all files the copyright year.
- changed documentation tags in front of all methods to the phpDocumentator compatible format.
- improved connect() errorhandling.
- changed login() parameters to $nick, $realname, $usermode = 0, $username = null, $password = null.
- changed join() parameters to $channelarray, $key = null.
- changed kick() parameters to $channel, $nicknamearray, $reason = null.
- changed listenFor() parameters to $messagetype
return value is now the result, instead the of a reference to the result parameter.
- sendbuffer has now 3 queues: high, medium and low
high sends 2 messages, then 1 of medium
low is only send if high _and_ medium is empty.
- select() call for sockets is strongly optimized
new:
- phpDocumentator package tags.
- include() for messagehandler.php (needed for the new API).
- setChannelSynching() method, for enabling the channel synching.
- setCtcpVersion() method, for changing the ctcp version reply string.
- setReceiveTimeout() method, for changing the receive timeout.
- setTransmitTimeout() method, for changing the transmit timeout.
- setAutoReconnect() method, for enabling the autoreconnect feature.
- channel variable, a reference to _channels because $object->channel("#chan")->topic is not possible in PHP4 (ZE1).
- reconnect() method, it will reconnect and also join all channels.
- channel() method, getting a reference to the channel, only if channelsynching is on.
- added ident, host, messageex and rawmessageex variables to the Net_SmartIRC_data class.
- class Net_SmartIRC_user, stores info about one user, only used if channelsynching is on.
- class Net_SmartIRC_channel, stores info about one channel, only used if channelsynching is on.
</notes>
</release>
<release>
<version>
<release>0.5.1</release>
<api>0.5.1</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2003-01-17</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
v0.5.1:
-------
fixes:
- major bugs in ChannelSynching fixed.
- fsocks support fixed.
- setUseSocket() method fixed.
If false was passed as parameter, it tried to load the socket extension.
Also warnings are now suppressed with @ in front of dl().
- fixed a typo in reconnect().
- missing SMARTIRC_DEBUG_CHANNELSYNCHING constant added.
changes:
- new design for HTML documentation used (PEAR template).
- moved all examples to their own directory (examples/).
- moved the documentation to docs/HTML/.
- added new file descriptions to README.
- removed not needed parts of DOCUMENTATION (most is now in the HTML version).
- updated the HTML documentation.
new:
- example5/6/7.php added.
- setAutoRetry() method added.
Autoretrying of connecting to the IRC server, is now supported.
</notes>
</release>
<release>
<version>
<release>0.5.5</release>
<api>0.5.5</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2003-07-23</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
v0.5.5:
-------
fixes:
- fixed a bug in _rawreceive()
messages were parsed wrong which caused problems with kick reasons.
(thx to sniper for reporting this).
- fixed bug in message()
CTCP ACTION messages had missing \001 at the end.
- fixed a bug in quit(), which caused quit messages not to be sent to the server.
- fixed reconnect() bug, it sent the channel join requests right after connect(),
and tried to join a channel without a name.
- fixes in ChannelSync code
When a user joins a channel after SmartIRC, no WHO info is updated in the user object.
Fixed wrong update of channel mode when rpl_channelmodeis received.
Fixed bug in _mode() method, which caused wrong handling of mode changes.
Topic updates are now tracked (thanks to sniper).
Fixed bug which caused fatal errors with ChannelSync enabled
(closes sf.net bug #705269).
Fixed bug in _event_mode(), unhandled modes were stored wrong.
Fixed bug in _event_rpl_namreply(), which caused that the first char of the first nick
of a namreply got cut (closes sf.net bug #747832).
- fixed bug in _checktimer()
Which caused problems when a timehandler is unregistered.
- fixed _gettye()
It wasn't recognizing SMARTIRC_TYPE_ACTION.
- removed if(!$obj) check for newly created objects (closes PHP bug #24622),
required for PHP 4.1.2 compatibility.
changes:
- removed all irc commands from SmartIRC.php
they have now their own file (SmartIRC/irccommands.php).
- Net_SmartIRC_messagehandler class now extends Net_SmartIRC_irccommands.
- removed the 1. parameter (&$irc) of all message handlers, not needed anymore.
- renamed class Net_SmartIRC_user to Net_SmartIRC_channeluser,
added class Net_SmartIRC_ircuser.
- added prefix _event to all message handlers (needed because of class restructuring).
- tweaked filling of the ircdata objects.
- log() now checks the passed debug level bitwise.
- $data->message will be null instead of random garbage,
if the IRC message has no colon (the message part),
- All methods that depend on ChannelSync mode, checks if it's enabled.
- Optimized the usage of time() for $this->_lastrx.
- updated the URL of a SmartIRC based bot (atbs).
- _loggedin is now set to false when the socket is dead,
required for proper working reconnect().
- on a reconnect(), the logfile won't be overwritten anymore.
- updated phpdoc tags.
- all access to the channel array now uses strtolower() for the key.
- fixed typo in function name setChannelSynching(),
now it's called setChannelSyncing() with a BC wrapper.
- removed all SMARTIRC_ prefixes for debug output.
- changed isJoined($channel) to isJoined($channel, $nickname)
for checking if the specified user is joined.
- removed "destructors", because they don't free the memory.
new:
- added isOpped() isVoiced() isBanned().
- added debug output and debug level for the messageparser.
- reconnect() uses now the channel key if one exists.
- added channel key syncing in _mode().
- when an actionhandler message regex has a leading '/' then the regex is used as it is,
this allows complex perl regex's.
- added message type SMARTIRC_TYPE_CTCP_REQUEST and SMARTIRC_CTCTP_REPLY for more advanced CTCP.
- added new log destinations SMARTIRC_NONE and SMARTIRC_BROWSEROUT
(for firendly browseroutput). When the script is called from a browser,
the BROWSEROUT will automatic be used (closed sf.net bug #708155).
- added error handling for socket_select() in _rawreceive().
- added getMessage() to Net_SmartIRC_Error class.
- added debug level for ChannelSync code (SMARTIRC_DEBUG_CHANNELSYNCING).
- added filename and linenumber to debug output.
- added key property to channel class.
- added to all IRC commands optional $priority parameter with default value SMARTIRC_MEDIUM.
- added isError() for more advanced errorhandling, needed for encapsulation.
- added _isValidType() method, which checks for valid SMARTIRC_TYPE_* types.
</notes>
</release>
<release>
<version>
<release>1.0.1</release>
<api>1.0.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2009-07-18</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
QA release
Updated to package 2.0
Bug #1950 Constructor calls ignore_user_abort(true) - undocumented and not always desired amir
Bug #3064 Doesn't work with php 5.0.3 meebey
Request #4727 Req Regarding Examples amir
Bug #5220 connect() returns in some situations no false amir
Bug #6525 When joining empty channel channel array is wrong amir
Bug #9848 fix for "Only variable references..." warning amir
Bug #10118 quit command doesn't disconnect the socket amir
Request #10119 Req CTCP version reply should be fully configurable amir
Request #13056 Allow multiple actionhandlers to execute amir
</notes>
</release>
<release>
<version>
<release>1.0.2</release>
<api>1.0.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2010-10-25</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
Automatically built QA release
Req #16526 Colour and bold codes are not supported - giggsey
</notes>
</release>
<release>
<version>
<release>1.1.0</release>
<api>1.1.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2014-09-03</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix Bug #12539: Flaw in timeout detection. [garrettw]
* Fix Bug #13079: Does not support founder/admin/half-op modes [garrettw]
* Fix Bug #14924: delayed timer with real socket [garrettw]
* Fix Bug #16531: Nickname changes wrong [garrettw]
* Fix Bug #17729: patch: Removed define_syslog_variables and avoided warning for socket
blocking [garrettw]
* Fix Bug #17769: file included with relative path [doconnor]
* Fix Bug #18586: Register Action Handle only accepts one class [garrettw]
* Fix Bug #18774: not compatible in strict mode [doconnor]
* Implement Feature #16755: Not possible to join more than one chanel even if "$channelarray" is
correctly [garrettw]
* Implement Feature #18025: Bind IP for Net_SmartIRC_base::connect()? [garrettw]
* Implement Feature #18403: Bug fixes, code formatting, added features [garrettw]
* Silenced PHP warnings when socket_select() receives a signal [garrettw]
* Added ability to dynamically reload client if user code supports it [garrettw]
* Added ability to pass arguments from user code to modules [garrettw]
* Added ability to send custom raw commands immediately after login() info [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.1</release>
<api>1.1.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2014-10-02</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix Bug #20419: Need a getter for the current bot nick [garrettw]
* Tweaked a few execution modifiers [garrettw]
* Removed limit on number of high-priority messages that can be sent before other priorities [garrettw]
* Tweaked logger output [garrettw]
* Updated HTML documentation [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.2</release>
<api>1.1.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2014-10-03</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Corrected package structure [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.3</release>
<api>1.1.1</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2014-10-23</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix Bug #20428: setBindAddress sets wrong variable [garrettw]
* Fix untracked bug: loadModule() and unloadModule() don't work right [garrettw]
* Added loadedModules() method which returns an array of the loaded module names, since $_modules isn't accessible publicly [garrettw]
* Updated HTML documentation [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.4</release>
<api>1.1.2</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2014-11-02</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix Bug #2309: Channel list message parsing error [garrettw]
* Implement Feature #7321: Please Add SSL support [garrettw]
* Implement Feature #20429: IPv6 socket support [garrettw]
* Eschewed socket_*() functions in favor of stream_*() functions, thereby deprecating setUseSockets() [garrettw]
* Fix untracked bug: unloadModule() still didn't work right [garrettw]
* unregisterActionId() and unregisterTimeId() now accept arrays of IDs [garrettw]
* Updated HTML documentation [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.5</release>
<api>1.1.2</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2014-12-25</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix Bug #20469: array syntax mismatch [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.6</release>
<api>1.1.3</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2015-01-17</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix Bug #20475: NAMREPLY/WHOREPLY being parsed incorrectly [garrettw]
* Fix Bug #20485: odd case where stream_select() has data and fgets() doesn't [garrettw]
* Fix Bug #20486: "Illegal string offset" error in _removeuser() [garrettw]
* Fix Bug #20487: RPL_OMOTDSTART and RPL_OMOTD occurred twice in defines.php [garrettw]
* Fix untracked bug: channel's users not added to array of their channelmode [garrettw]
* loadModule() can now load classes that already exist; no longer forces use of external files [garrettw]
* listenFor() can now take an additional parameter: the regex to match on [garrettw]
* Improved code for action/time handlers [garrettw]
* Updated HTML documentation [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.7</release>
<api>1.1.4</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2015-04-18</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Added fluency (some methods now return $this) [garrettw]
* Unknown message codes can now be handled instead of failing [garrettw]
* Improved setRunAsDaemon() [garrettw]
* Fix strict warning on stream_select [markcarver]
* Updated HTML documentation [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.8</release>
<api>1.1.4</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2015-07-30</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix Bug #20522: Bug in messagehandler.php on line 521 [garrettw]
* Fix Bug #20524: Bug in messagehandler.php on line 141 [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.9</release>
<api>1.1.4</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2015-11-25</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix Bug #20971: forgot to remove deprecated method call [garrettw]
* Fix Bug #20972: added usermode parsing on reconnect [garrettw]
* Fix Bug #20973: added time handler calls to reconnect() [garrettw]
* Fix Bug #20974: improved reconnect() to avoid recursion/stack overflows [garrettw]
* Updated HTML documentation [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.10</release>
<api>1.1.5</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2016-12-25</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix Bug #21018: removed reference assignment in _adduser() [garrettw]
* Fix Bug #21109: corrected for error in official fwrite() docs [garrettw]
* Tweaked API for action/time handlers; you can pass callables now [garrettw]
* Updated HTML documentation [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.11</release>
<api>1.1.5</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2017-06-15</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix regression: Allow time handlers to be invoked correctly [timdream]
* Fixed old spelling mistakes in documentation [klemens]
</notes>
</release>
<release>
<version>
<release>1.1.12</release>
<api>1.1.6</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2018-05-09</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Fix composer autoload path [glen]
* Fix PHP notices [glen]
* Implement Feature #23746: added method to get connection status [garrettw]
* Updated HTML documentation [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.13</release>
<api>1.1.7</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2018-05-09</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Corrected return value of isConnected() to match docs [garrettw]
</notes>
</release>
<release>
<version>
<release>1.1.14</release>
<api>1.1.7</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2019-02-14</date>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL 2.1</license>
<notes>
* Merge PR #10: (Composer fix) Added global keyword for $SMARTIRC_nreplycodes [diddledan]
</notes>
</release>
</changelog>
</package>