]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2001.txt
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2001.txt
1 From dropper at softhome.net Fri Jan 26 06:57:28 2001
2 From: dropper at softhome.net (Levent OZVEREN)
3 Date: Sat Oct 23 23:09:11 2004
4 Subject: [Ircservices-coding] subscribe dropper@softhome.net
5 Message-ID: <001c01c087a8$52a870c0$a591bad5@m4l7l9>
6
7
8
9
10 From andy at strugglers.net Sat Jan 27 04:18:06 2001
11 From: andy at strugglers.net (Andy Smith)
12 Date: Sat Oct 23 23:09:11 2004
13 Subject: [Ircservices-coding] akill sanity checking
14 Message-ID: <q7657tofm70rnp7cehtj2nll68anr1ebb0@4ax.com>
15
16 Hi,
17
18 There's a FIXME in the ADD section of do_akill from akill.c regarding
19 wanting a better way to check for an insane akill mask. I've found the
20 following idea useful:
21
22 for (i = strlen(mask) - 1;
23 i > 0 && mask[i] != '@'; i--) {
24 if (! strchr("*?.", mask[i])) {
25 nonwild++;
26 }
27 }
28
29 if (AkillWildThresh && nonwild < AkillWildThresh) {
30 notice_lang(s_OperServ, u,
31 OPER_AKILL_MASK_TOO_GENERAL);
32 return;
33 }
34
35 i.e. it counts from right to left in the mask checking how many characters
36 there are which don't match '?', '*' or '.'. AkillWildThresh would be a
37 config option, an example setting of 4 would prevent the following akills:
38
39 *@*
40 *@?*
41 *@*?com
42 *@*.com
43
44 but would allow akills such as:
45
46 *@*a.com
47 *@foobar*
48
49 Works for me, and is nicely configurable.
50
51 --
52 Andy Smith <andy@strugglers.net>
53
54
55 From andy at strugglers.net Mon Jan 29 15:01:34 2001
56 From: andy at strugglers.net (Andy Smith)
57 Date: Sat Oct 23 23:09:11 2004
58 Subject: [Ircservices-coding] Re: [IRCServices] Services 4.5pre0 released
59 In-Reply-To: <3a74b222.15614@prima-lan.net>
60 References: <3a74b222.15614@prima-lan.net>
61 Message-ID: <u7ja7t8g3p9g2neuhf51d6cs4poc7ks8bu@4ax.com>
62
63 On Mon, 29 Jan 2001 08:57:09 JST, achurch@achurch.org (Andrew Church) wrote:
64
65 > Services 4.5pre0 has been released, and can be downloaded from:
66 >
67 >ftp://ftp.esper.net/ircservices/ircservices-4.5pre0.tar.gz
68
69 > * Support for the DALnet Bahamut server has been improved. Note that
70 > only versions 1.4.1 and later are supported (support for earlier
71 > versions has been dropped).
72
73 Please note that if you are using Bahamut and ircservices-4.5 then the
74 ChanServ UNBAN command may not work correctly, due to this bug in Bahamut:
75
76 http://ircd-devel.dal.net/jitterbug/jitterbug.cgi/incoming?id=806;expression=del_banid;user=guest
77
78 Bahamut's support for SVSMODE -b only works by chance on FreeBSD, and fails
79 on Linux and probably other platforms. The result is that you see the ban
80 being lifted but in reality it is still there.
81
82 If you don't mind editing the code of your ircd then a quick fix is very
83 simple, just read the above bug report.
84
85 That also explains why Dalnet's own ChanServ UNBAN command has stopped
86 working for users of twisted.* and tsunami.*.
87
88 --
89 Andy Smith <andy@strugglers.net>
90
91
92 From andrewk at icon.co.za Thu Feb 1 00:22:09 2001
93 From: andrewk at icon.co.za (Andrew Kempe)
94 Date: Sat Oct 23 23:09:11 2004
95 Subject: [IRCServices-Coding] test
96 Message-ID: <075e01c08c28$11d0c910$9c011ac4@africa.didata.local>
97
98
99
100
101 From andrewk at icon.co.za Thu Feb 1 00:27:45 2001
102 From: andrewk at icon.co.za (Andrew Kempe)
103 Date: Sat Oct 23 23:09:11 2004
104 Subject: [IRCServices-Coding] New Mailing List Software
105 Message-ID: <076601c08c28$da429130$9c011ac4@africa.didata.local>
106
107 The ircservices-coding mailing list has been upgraded to mailman too.
108
109 Please post to this list using ircservices-coding@ircservices.za.net from
110 now on. You can get support for the mailing list from:
111 http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
112
113 To unsubscribe mail ircservices-coding-request@ircservices.za.net with
114 UNSUBSCRIBE in the subject of the email.
115
116 Later, Andrew
117
118
119
120 From ctackett at pirchplace.com Thu Mar 29 20:47:35 2001
121 From: ctackett at pirchplace.com (C. Tackett)
122 Date: Sat Oct 23 23:09:11 2004
123 Subject: [IRCServices Coding] ChanServ Question
124 Message-ID: <5.0.2.1.0.20010329234619.00a43dd0@scican.net>
125
126 Heya Folks!
127
128 I have a question :-)
129
130 How do you I get the ChanServ to join the channel when an IRCop asks to
131 bring it in?
132 I just want the IRCops to have that power no one else..
133
134 If this can be done I would love to know!
135
136
137 Regards,
138
139 Chris Tackett - ctackett@pirchplace.com
140 The Pirch Place - http://www.PirchPlace.com
141 The Internet's Leading Pirch Community
142
143 -------------- next part --------------
144 An HTML attachment was scrubbed...
145 URL: http://lists.ircservices.za.net/pipermail/ircservices-coding/attachments/20010329/feff835d/attachment.html
146 From jpinto17 at visteon.com Thu Mar 29 22:58:03 2001
147 From: jpinto17 at visteon.com (Pinto, Joao luis (J.M.))
148 Date: Sat Oct 23 23:09:11 2004
149 Subject: [IRCServices Coding] ChanServ Question
150 Message-ID: <200103300658.f2U6wLX17595@dymwsm09.mailwatch.com>
151
152 Just
153 /OperServ raw :ChanServ JOIN #Chan
154 anyway you should not play with raw command, unless you know what you are
155 doing.
156
157 Lamego@PTlink.net
158 PTlink Tech Admin
159 http://www.ptlink.net
160
161 -----Original Message-----
162 From: C. Tackett [mailto:ctackett@pirchplace.com]
163 Sent: 30 March 2001 05:48
164 To: ircservices-coding@ircservices.za.net
165 Subject: [IRCServices Coding] ChanServ Question
166
167
168 Heya Folks!
169
170 I have a question :-)
171
172 How do you I get the ChanServ to join the channel when an IRCop asks to
173 bring it in?
174 I just want the IRCops to have that power no one else..
175
176 If this can be done I would love to know!
177
178
179 Regards,
180
181 Chris Tackett - ctackett@pirchplace.com
182 The Pirch Place - http://www.PirchPlace.com
183 The Internet's Leading Pirch Community
184
185
186
187 From achurch at achurch.org Thu Dec 13 23:22:05 2001
188 From: achurch at achurch.org (Andrew Church)
189 Date: Sat Oct 23 23:09:11 2004
190 Subject: [IRCServices Coding] Version 5.0 alpha release available
191 Message-ID: <3c18b9d4.67533@achurch.org>
192
193 Well, it's taken a while, but Services 5.0 has finally begun to take a
194 reasonable shape (other than "completely jumbled and in little teensy bits")
195 and I've decided to release a public alpha test version.
196
197 Before you all start jumping for joy, bear in mind that this is an
198 ALPHA TEST VERSION--this means that it is known to have bugs, and quite a
199 few of them, and is absolutely NOT for use on a production network. About
200 the only thing that should work is compiling, and I won't even guarantee
201 that. DO NOT DOWNLOAD THIS VERSION unless you intend to help find (and
202 fix!) bugs, or translate the new language files. If I get any complaints
203 about an alpha release being broken, causing problems on someone's network,
204 or anything like that, I won't release any more alpha versions, and you'll
205 just have to wait longer.
206
207 Furthermore, all discussion on the 5.0 alpha release should go to this
208 list, ircservices-coding. Discussion (except possibly feature requests, if
209 I'm in a good mood) about the alpha release on this list will NOT be
210 tolerated, and offenders may be forcibly removed from the list.
211
212 If you still want to download the alpha version, visit the Services
213 home page (http://www.ircservices.za.net/) for information. (I won't post
214 a download link here because (1) it will change as versions go up, or if I
215 take it down entirely, and (2) I want people to see the warnings I put up
216 before downloading it.)
217
218 Also, I'll be busy or out of town with year-end activities for most of
219 the rest of the year, so I may not be able to respond quickly to mail;
220 please be patient, as always.
221
222 --Andrew Church
223 achurch@achurch.org
224 http://achurch.org/
225
226 From mark at mhetherington.demon.co.uk Thu Dec 13 14:42:45 2001
227 From: mark at mhetherington.demon.co.uk (Mark Hetherington)
228 Date: Sat Oct 23 23:09:11 2004
229 Subject: [IRCServices Coding] Services 5
230 Message-ID: <NFBBKFAFGLNBHGEDBKDMMEGACHAA.mark@mhetherington.demon.co.uk>
231
232 Firstly, thanks to Andrew for releasing the alpha version. Hopefully he will
233 not feel that he has to later remove this opportunity.
234
235 A few early questions that maybe Andrew or the Alpha team might be able to
236 comment on.
237
238 1) Do we have any idea on time scale for development beyond alpha? I
239 understand that it is a difficult question to answer given RL committments
240 but based on work so far and this extended open test hopefully highlighting
241 major issues quite quickly, might make it easier to provide an estimate.
242
243 2) Despite the warning not to run the alpha on a production network, it does
244 seem to be the best place to run it since it will give a much more realistic
245 test of the code. It is also very tempting to upgrade :) To this end, are
246 there specific known issues at this time with the current build that would
247 make it completely impractical to run on a small production network? The
248 "knownbugs" file does not seem to have anything specific to Services 5 and
249 nothing serious mentioned either way but those who have already had chance
250 to play with Services 5 may have a good idea of things that would make it
251 unsuitable for risking in a production environment.
252
253 3) At present we seem to be restricted to the mailing list for bug reporting
254 and discussion which makes the process qyute closed. Has there been any
255 thought given to providing some kind of online tracking system which would
256 both show what bugs are currently known and their status? Maybe something on
257 sourceforge or similar system would suffice.
258
259 4) I was wondering about the reasons for AJOIN being included in Services 5.
260 It seems to place an overhead on NickServ that has been handled by many IRC
261 clients for a number of years. Even clients which do not specifically
262 support it, but that implement perform can easily provide AJOIN
263 functionality. Any client supporting scripting could easily manage an AJOIN
264 list. A number of clients support dynamic AJOIN lists by offering to
265 remember hannels that a user uses on a regular basis.
266
267 Since part of the ethos behind IRC Services development is not to perform
268 tasks that really belong in IRCd or in clients or could be scripted, it
269 seems odd that firstly this system has been implemented and secondly it is
270 enabled in a default configuration.
271
272 Is there something specific that I am missing about this services managed
273 auto join list which makes it preferable to the existing client code which
274 already performs this task?
275
276
277 Anyway, back to play around with the source some more.
278
279 Mark.
280
281
282 From beng at nc.rr.com Thu Dec 13 15:04:37 2001
283 From: beng at nc.rr.com (Ben Goldstein)
284 Date: Sat Oct 23 23:09:11 2004
285 Subject: [IRCServices Coding] Alpha compile error
286 Message-ID: <005a01c1842a$8a36e1f0$0300a8c0@asi200>
287
288 gcc -DCLEAN_COMPILE -O2 -Wall -Wmissing-prototypes -g -I../.. -c set.c -o
289 set.o
290 set.c: In function `do_set_timezone':
291 set.c:487: wrong type argument to unary minus
292 set.c:447: warning: `j' might be used uninitialized in this function
293
294 487: j = ngi->timezone*60 - (-timezone);
295
296 I'm not sure what this is even doing, I havn't dug into the code. But it
297 doesn't seem that "timezone" alone is the correct var you meant to use here.
298
299 -- Ben Goldstein (beng@nc.rr.com)
300
301 bash-2.05$ uname -a
302 FreeBSD raider 4.4-20010827-RC2 FreeBSD 4.4-20010827-RC2 #4: Fri Nov 16
303 14:57:04 EST 2001 root@raider:/usr/obj/usr/src/sys/BG1 i386
304 bash-2.05$ gmake -ver
305 GNU Make version 3.79, by Richard Stallman and Roland McGrath.
306 Built for i386-unknown-freebsdelf4.4
307 Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
308 Free Software Foundation, Inc.
309 This is free software; see the source for copying conditions.
310 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
311 PARTICULAR PURPOSE.
312
313 Report bugs to <bug-make@gnu.org>.
314
315
316
317 From griever at t2n.org Thu Dec 13 17:53:11 2001
318 From: griever at t2n.org (Finny Merrill)
319 Date: Sat Oct 23 23:09:11 2004
320 Subject: [IRCServices Coding] REHASH help
321 Message-ID: <Pine.LNX.4.33.0112131952340.28410-100000@linux.ircd-net.org>
322
323 the restricted to services admins line has a tab char at the end.
324
325
326
327 From zogg at pcisys.net Thu Dec 13 18:36:16 2001
328 From: zogg at pcisys.net (Ryan Riley)
329 Date: Sat Oct 23 23:09:11 2004
330 Subject: [IRCServices Coding] v5.0a7 - sline module
331 Message-ID: <3C1965A0.3000409@pcisys.net>
332
333 I just grabbed a copy of Alpha7 for a night of fun testing, but I've run
334 into an issue. I did the standard install, modified the 2 example
335 configs to fit my needs, and I get this on startup:
336 [irc@zogg bin]$ ./services -nofork
337 [Dec 13 21:30:09 2001] Services 5.0a7 starting up
338 [Dec 13 21:30:09 2001] modules.conf:180: Unknown directive `LogMaxUsers'
339 [Dec 13 21:30:09 2001] modules.conf:226: Unknown directive `WallGetpass'
340 [Dec 13 21:30:09 2001] modules.conf:233: Unknown directive `WallSetpass'
341 [Dec 13 21:30:09 2001] modules: Unable to load module `operserv/sline':
342 /home/irc/devel/services/bin/lib/modules/operserv/sline.so: undefined
343 symbol: protocol_features
344 [Dec 13 21:30:09 2001] FATAL: Error loading modules, aborting
345
346 That undefined symbol error doesn't pass by me as being a good thing, so
347 I figured I'd mention it here.
348 I've tried commenting out all of the operserv/sline references in
349 modules.conf, but it attempts to load it anyway. (I haven't taken a
350 dive into the source yet to figure out how the new module system works,
351 so this could very well be normal.)
352 I'm on a RedHat 7.1 machine if that makes a difference.
353
354 Thanks
355 Ryan Riley
356
357
358
359 From grenday288 at geocities.com Thu Dec 13 20:36:09 2001
360 From: grenday288 at geocities.com (Josh)
361 Date: Sat Oct 23 23:09:11 2004
362 Subject: [IRCServices Coding] Alpha compile error
363 In-Reply-To: <005a01c1842a$8a36e1f0$0300a8c0@asi200>
364 Message-ID: <3C192D59.13694.1989660C@localhost>
365
366 On 13 Dec 2001, at 18:04, Ben Goldstein wrote:
367
368 change like 487 in set.c to
369 j = (ngi->timezone*60 - u->ngi->timezone);
370 Im pretty sure thats not what its suppose to be but its only for
371 timestamp stuff and still compiles (didnt try running it yet).
372
373 > gcc -DCLEAN_COMPILE -O2 -Wall -Wmissing-prototypes -g -I../.. -c set.c -o
374 > set.o
375 > set.c: In function `do_set_timezone':
376 > set.c:487: wrong type argument to unary minus
377 > set.c:447: warning: `j' might be used uninitialized in this function
378 >
379 > 487: j = ngi->timezone*60 - (-timezone);
380 >
381 > I'm not sure what this is even doing, I havn't dug into the code. But it
382 > doesn't seem that "timezone" alone is the correct var you meant to use here.
383 >
384 > -- Ben Goldstein (beng@nc.rr.com)
385 >
386 > bash-2.05$ uname -a
387 > FreeBSD raider 4.4-20010827-RC2 FreeBSD 4.4-20010827-RC2 #4: Fri Nov 16
388 > 14:57:04 EST 2001 root@raider:/usr/obj/usr/src/sys/BG1 i386
389 > bash-2.05$ gmake -ver
390 > GNU Make version 3.79, by Richard Stallman and Roland McGrath.
391 > Built for i386-unknown-freebsdelf4.4
392 > Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
393 > Free Software Foundation, Inc.
394 > This is free software; see the source for copying conditions.
395 > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
396 > PARTICULAR PURPOSE.
397 >
398 > Report bugs to <bug-make@gnu.org>.
399 >
400 >
401 > ------------------------------------------------------------------
402 > To unsubscribe or change your subscription options, visit:
403 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
404
405
406 -------------------------------------
407 -- Josh Kirkorian [aka Poison-X]
408 -- Administrator - irc.insiderz.net
409
410 C Code. C code run. Run, code, run...
411 Segmentation fault (core dumped).. aww shit
412
413 From andrewk at isdial.net Thu Dec 13 22:41:19 2001
414 From: andrewk at isdial.net (Andrew Kempe)
415 Date: Sat Oct 23 23:09:11 2004
416 Subject: [IRCServices Coding] Services 5
417 References: <NFBBKFAFGLNBHGEDBKDMMEGACHAA.mark@mhetherington.demon.co.uk>
418 Message-ID: <004901c1846a$56734800$9c011ac4@africa.didata.local>
419
420 > 3) At present we seem to be restricted to the mailing list for bug
421 reporting
422 > and discussion which makes the process qyute closed. Has there been any
423 > thought given to providing some kind of online tracking system which would
424 > both show what bugs are currently known and their status? Maybe something
425 on
426 > sourceforge or similar system would suffice.
427
428 I setup a very basic source forge project for services a while back, but
429 have not been maintaining it. If Andrew is willing to use SF for bug
430 tracking, I'm more than willing to start maintaining the project there. But
431 it's up to Andrew, as he's the one who will be updating what has been
432 changed/fixed.
433
434 Andrew
435
436
437 From rg at tcslon.com Fri Dec 14 01:07:59 2001
438 From: rg at tcslon.com (Russell Garrett)
439 Date: Sat Oct 23 23:09:11 2004
440 Subject: [IRCServices Coding] Services 5
441 In-Reply-To: <004901c1846a$56734800$9c011ac4@africa.didata.local>
442 Message-ID: <NDBBLDHKLKMANPGMACIGCEKLCMAA.rg@tcslon.com>
443
444 Just first comments on this:
445
446 For an alpha, it looks great, I would put it on my (small) production
447 network would it be for a rather annoying bug:
448
449 IRCServices 5 seems to have a few problems shutting down... on one of
450 my servers, it dumped 16Mb of "Server Segfaulting" messages to the
451 log before dying, and on the second attempt dumped a similar amount
452 to SNotices (granted it gave my test network a good load test ;) On
453 my other server, it sapped up all the CPU, and required a reboot. (I
454 was stopping services both by /squitting and by SIGTERM).
455
456 Other than that, I love it :) The mailing features look pretty swish,
457 and although I haven't looked at the modules much, it looks good.
458
459 Keep up the good work,
460
461
462 Russ Garrett (russ@garrett.co.uk)
463
464
465 From achurch at achurch.org Fri Dec 14 18:43:37 2001
466 From: achurch at achurch.org (Andrew Church)
467 Date: Sat Oct 23 23:09:11 2004
468 Subject: [IRCServices Coding] Services 5
469 Message-ID: <3c19ca25.04274@achurch.org>
470
471 Looks like this didn't get through the first time, so:
472
473 1) No, because I have no clue how many bugs will turn up ;) At this point
474 I'm tempted to say beta in February and stable release in April or so, but
475 I have absolutely no basis for saying that, so don't quote me on it.
476
477 2) The notice is intended more for lamers who say "ooh it's version 5!" and
478 rush to download it. Feel free to use it on your production network, as
479 long as you take responsibility for any problems it causes. There aren't
480 too many major issues right now that I can think of, but it's the ones I
481 haven't found yet that worry me more. (One major issue I do know of is
482 that rehashing modules.conf doesn't work yet and could easily break
483 things.)
484
485 3) Not really, mostly because it would be a pain to set up and manage.
486 I may set something up once 5.0 has gone stable, but until then it's just
487 too much to deal with. And I want absolutely nothing to do with the
488 piece-of-shit-formerly-known-as-Sourceforge.
489
490 4) For autojoin in particular, it was pointed out to me that not everyone
491 always accesses IRC from the same computer, which would make client
492 settings irrelevant. In general, though, with the module system, I'm a bit
493 more lenient in terms of what I'll let in, since you can just disable
494 modules you don't need. (And the reason for almost everything being
495 enabled in the default config is so you'll all test them for me. ;) Some
496 will probably be disabled in beta/final releases.)
497
498 --Andrew Church
499 achurch@achurch.org
500 http://achurch.org/
501
502 >Firstly, thanks to Andrew for releasing the alpha version. Hopefully he will
503 >not feel that he has to later remove this opportunity.
504 >
505 >A few early questions that maybe Andrew or the Alpha team might be able to
506 >comment on.
507 >
508 >1) Do we have any idea on time scale for development beyond alpha? I
509 >understand that it is a difficult question to answer given RL committments
510 >but based on work so far and this extended open test hopefully highlighting
511 >major issues quite quickly, might make it easier to provide an estimate.
512 >
513 >2) Despite the warning not to run the alpha on a production network, it does
514 >seem to be the best place to run it since it will give a much more realistic
515 >test of the code. It is also very tempting to upgrade :) To this end, are
516 >there specific known issues at this time with the current build that would
517 >make it completely impractical to run on a small production network? The
518 >"knownbugs" file does not seem to have anything specific to Services 5 and
519 >nothing serious mentioned either way but those who have already had chance
520 >to play with Services 5 may have a good idea of things that would make it
521 >unsuitable for risking in a production environment.
522 >
523 >3) At present we seem to be restricted to the mailing list for bug reporting
524 >and discussion which makes the process qyute closed. Has there been any
525 >thought given to providing some kind of online tracking system which would
526 >both show what bugs are currently known and their status? Maybe something on
527 >sourceforge or similar system would suffice.
528 >
529 >4) I was wondering about the reasons for AJOIN being included in Services 5.
530 >It seems to place an overhead on NickServ that has been handled by many IRC
531 >clients for a number of years. Even clients which do not specifically
532 >support it, but that implement perform can easily provide AJOIN
533 >functionality. Any client supporting scripting could easily manage an AJOIN
534 >list. A number of clients support dynamic AJOIN lists by offering to
535 >remember hannels that a user uses on a regular basis.
536 >
537 >Since part of the ethos behind IRC Services development is not to perform
538 >tasks that really belong in IRCd or in clients or could be scripted, it
539 >seems odd that firstly this system has been implemented and secondly it is
540 >enabled in a default configuration.
541 >
542 >Is there something specific that I am missing about this services managed
543 >auto join list which makes it preferable to the existing client code which
544 >already performs this task?
545 >
546 >
547 >Anyway, back to play around with the source some more.
548 >
549 >Mark.
550 >
551 >------------------------------------------------------------------
552 >To unsubscribe or change your subscription options, visit:
553 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
554
555 From jpinto17 at visteon.com Fri Dec 14 03:57:50 2001
556 From: jpinto17 at visteon.com (Pinto, Joao luis (J.M.))
557 Date: Sat Oct 23 23:09:11 2004
558 Subject: [IRCServices Coding] Services 5
559 Message-ID: <200112141157.fBEBvrn13721@dymwsm11.mailwatch.com>
560
561 I hope other people don't know so much about ircservices as you know about
562 sourceforge. You probably wouldn't like to see your project named as
563 piece-of-shit-formerly-known-as-irc-services.
564
565 >3) Not really, mostly because it would be a pain to set up and manage.
566 >I may set something up once 5.0 has gone stable, but until then it's just
567 >too much to deal with. And I want absolutely nothing to do with the
568 >piece-of-shit-formerly-known-as-Sourceforge.
569
570 Joao Pinto
571 Lamego@PTlink.net
572
573
574 -----Original Message-----
575 From: achurch@achurch.org [mailto:achurch@achurch.org]
576 Sent: 14 December 2001 09:44
577 To: ircservices-coding@ircservices.za.net
578 Subject: Re: [IRCServices Coding] Services 5
579
580
581 Looks like this didn't get through the first time, so:
582
583 1) No, because I have no clue how many bugs will turn up ;) At this point
584 I'm tempted to say beta in February and stable release in April or so, but
585 I have absolutely no basis for saying that, so don't quote me on it.
586
587 2) The notice is intended more for lamers who say "ooh it's version 5!" and
588 rush to download it. Feel free to use it on your production network, as
589 long as you take responsibility for any problems it causes. There aren't
590 too many major issues right now that I can think of, but it's the ones I
591 haven't found yet that worry me more. (One major issue I do know of is
592 that rehashing modules.conf doesn't work yet and could easily break
593 things.)
594
595 3) Not really, mostly because it would be a pain to set up and manage.
596 I may set something up once 5.0 has gone stable, but until then it's just
597 too much to deal with. And I want absolutely nothing to do with the
598 piece-of-shit-formerly-known-as-Sourceforge.
599
600 4) For autojoin in particular, it was pointed out to me that not everyone
601 always accesses IRC from the same computer, which would make client
602 settings irrelevant. In general, though, with the module system, I'm a bit
603 more lenient in terms of what I'll let in, since you can just disable
604 modules you don't need. (And the reason for almost everything being
605 enabled in the default config is so you'll all test them for me. ;) Some
606 will probably be disabled in beta/final releases.)
607
608 --Andrew Church
609 achurch@achurch.org
610 http://achurch.org/
611
612 >Firstly, thanks to Andrew for releasing the alpha version. Hopefully he
613 will
614 >not feel that he has to later remove this opportunity.
615 >
616 >A few early questions that maybe Andrew or the Alpha team might be able to
617 >comment on.
618 >
619 >1) Do we have any idea on time scale for development beyond alpha? I
620 >understand that it is a difficult question to answer given RL committments
621 >but based on work so far and this extended open test hopefully highlighting
622 >major issues quite quickly, might make it easier to provide an estimate.
623 >
624 >2) Despite the warning not to run the alpha on a production network, it
625 does
626 >seem to be the best place to run it since it will give a much more
627 realistic
628 >test of the code. It is also very tempting to upgrade :) To this end, are
629 >there specific known issues at this time with the current build that would
630 >make it completely impractical to run on a small production network? The
631 >"knownbugs" file does not seem to have anything specific to Services 5 and
632 >nothing serious mentioned either way but those who have already had chance
633 >to play with Services 5 may have a good idea of things that would make it
634 >unsuitable for risking in a production environment.
635 >
636 >3) At present we seem to be restricted to the mailing list for bug
637 reporting
638 >and discussion which makes the process qyute closed. Has there been any
639 >thought given to providing some kind of online tracking system which would
640 >both show what bugs are currently known and their status? Maybe something
641 on
642 >sourceforge or similar system would suffice.
643 >
644 >4) I was wondering about the reasons for AJOIN being included in Services
645 5.
646 >It seems to place an overhead on NickServ that has been handled by many IRC
647 >clients for a number of years. Even clients which do not specifically
648 >support it, but that implement perform can easily provide AJOIN
649 >functionality. Any client supporting scripting could easily manage an AJOIN
650 >list. A number of clients support dynamic AJOIN lists by offering to
651 >remember hannels that a user uses on a regular basis.
652 >
653 >Since part of the ethos behind IRC Services development is not to perform
654 >tasks that really belong in IRCd or in clients or could be scripted, it
655 >seems odd that firstly this system has been implemented and secondly it is
656 >enabled in a default configuration.
657 >
658 >Is there something specific that I am missing about this services managed
659 >auto join list which makes it preferable to the existing client code which
660 >already performs this task?
661 >
662 >
663 >Anyway, back to play around with the source some more.
664 >
665 >Mark.
666 >
667 >------------------------------------------------------------------
668 >To unsubscribe or change your subscription options, visit:
669 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
670 ------------------------------------------------------------------
671 To unsubscribe or change your subscription options, visit:
672 http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
673
674 From Georges at Berscheid.lu Fri Dec 14 05:06:05 2001
675 From: Georges at Berscheid.lu (Georges Berscheid)
676 Date: Sat Oct 23 23:09:11 2004
677 Subject: [IRCServices Coding] Version 5 (feature request)
678 Message-ID: <3C19F93D.D937F198@Berscheid.lu>
679
680 Hi,
681
682 1. what about adding a command to dynamically load/unload modules
683 without having to restart/rehash services (e.g. /operserv
684 loadmod|unloadmod <modulename>) ?
685 2. would it be possible to add an include function for modules.conf so
686 each module (evt. coming in a package) could have its own config file.
687 3. a dynamic way to include language files for modules would also be
688 great, instead of having to insert your module-specific strings to a .l
689 file and recompiling the whole stuff.
690
691 Greetings
692
693 Georges
694
695
696 From achurch at achurch.org Sat Dec 15 00:02:16 2001
697 From: achurch at achurch.org (Andrew Church)
698 Date: Sat Oct 23 23:09:11 2004
699 Subject: [IRCServices Coding] Services 5
700 Message-ID: <3c1a14fb.04335@achurch.org>
701
702 >I hope other people don't know so much about ircservices as you know about
703 >sourceforge. You probably wouldn't like to see your project named as
704 >piece-of-shit-formerly-known-as-irc-services.
705
706 Everyone's entitled to their opinions, and I suspect someone with that
707 opinion wouldn't be using it in the first place so I'd never have to deal
708 with them anyway.
709
710 --Andrew Church
711 achurch@achurch.org
712 http://achurch.org/
713
714 >>3) Not really, mostly because it would be a pain to set up and manage.
715 >>I may set something up once 5.0 has gone stable, but until then it's just
716 >>too much to deal with. And I want absolutely nothing to do with the
717 >>piece-of-shit-formerly-known-as-Sourceforge.
718 >
719 >Joao Pinto
720 >Lamego@PTlink.net
721 >
722 >
723 >-----Original Message-----
724 >From: achurch@achurch.org [mailto:achurch@achurch.org]
725 >Sent: 14 December 2001 09:44
726 >To: ircservices-coding@ircservices.za.net
727 >Subject: Re: [IRCServices Coding] Services 5
728 >
729 >
730 > Looks like this didn't get through the first time, so:
731 >
732 >1) No, because I have no clue how many bugs will turn up ;) At this point
733 >I'm tempted to say beta in February and stable release in April or so, but
734 >I have absolutely no basis for saying that, so don't quote me on it.
735 >
736 >2) The notice is intended more for lamers who say "ooh it's version 5!" and
737 >rush to download it. Feel free to use it on your production network, as
738 >long as you take responsibility for any problems it causes. There aren't
739 >too many major issues right now that I can think of, but it's the ones I
740 >haven't found yet that worry me more. (One major issue I do know of is
741 >that rehashing modules.conf doesn't work yet and could easily break
742 >things.)
743 >
744 >3) Not really, mostly because it would be a pain to set up and manage.
745 >I may set something up once 5.0 has gone stable, but until then it's just
746 >too much to deal with. And I want absolutely nothing to do with the
747 >piece-of-shit-formerly-known-as-Sourceforge.
748 >
749 >4) For autojoin in particular, it was pointed out to me that not everyone
750 >always accesses IRC from the same computer, which would make client
751 >settings irrelevant. In general, though, with the module system, I'm a bit
752 >more lenient in terms of what I'll let in, since you can just disable
753 >modules you don't need. (And the reason for almost everything being
754 >enabled in the default config is so you'll all test them for me. ;) Some
755 >will probably be disabled in beta/final releases.)
756 >
757 > --Andrew Church
758 > achurch@achurch.org
759 > http://achurch.org/
760 >
761 >>Firstly, thanks to Andrew for releasing the alpha version. Hopefully he
762 >will
763 >>not feel that he has to later remove this opportunity.
764 >>
765 >>A few early questions that maybe Andrew or the Alpha team might be able to
766 >>comment on.
767 >>
768 >>1) Do we have any idea on time scale for development beyond alpha? I
769 >>understand that it is a difficult question to answer given RL committments
770 >>but based on work so far and this extended open test hopefully highlighting
771 >>major issues quite quickly, might make it easier to provide an estimate.
772 >>
773 >>2) Despite the warning not to run the alpha on a production network, it
774 >does
775 >>seem to be the best place to run it since it will give a much more
776 >realistic
777 >>test of the code. It is also very tempting to upgrade :) To this end, are
778 >>there specific known issues at this time with the current build that would
779 >>make it completely impractical to run on a small production network? The
780 >>"knownbugs" file does not seem to have anything specific to Services 5 and
781 >>nothing serious mentioned either way but those who have already had chance
782 >>to play with Services 5 may have a good idea of things that would make it
783 >>unsuitable for risking in a production environment.
784 >>
785 >>3) At present we seem to be restricted to the mailing list for bug
786 >reporting
787 >>and discussion which makes the process qyute closed. Has there been any
788 >>thought given to providing some kind of online tracking system which would
789 >>both show what bugs are currently known and their status? Maybe something
790 >on
791 >>sourceforge or similar system would suffice.
792 >>
793 >>4) I was wondering about the reasons for AJOIN being included in Services
794 >5.
795 >>It seems to place an overhead on NickServ that has been handled by many IRC
796 >>clients for a number of years. Even clients which do not specifically
797 >>support it, but that implement perform can easily provide AJOIN
798 >>functionality. Any client supporting scripting could easily manage an AJOIN
799 >>list. A number of clients support dynamic AJOIN lists by offering to
800 >>remember hannels that a user uses on a regular basis.
801 >>
802 >>Since part of the ethos behind IRC Services development is not to perform
803 >>tasks that really belong in IRCd or in clients or could be scripted, it
804 >>seems odd that firstly this system has been implemented and secondly it is
805 >>enabled in a default configuration.
806 >>
807 >>Is there something specific that I am missing about this services managed
808 >>auto join list which makes it preferable to the existing client code which
809 >>already performs this task?
810 >>
811 >>
812 >>Anyway, back to play around with the source some more.
813 >>
814 >>Mark.
815 >>
816 >>------------------------------------------------------------------
817 >>To unsubscribe or change your subscription options, visit:
818 >>http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
819 >------------------------------------------------------------------
820 >To unsubscribe or change your subscription options, visit:
821 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
822 >------------------------------------------------------------------
823 >To unsubscribe or change your subscription options, visit:
824 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
825
826 From achurch at achurch.org Sat Dec 15 00:04:56 2001
827 From: achurch at achurch.org (Andrew Church)
828 Date: Sat Oct 23 23:09:11 2004
829 Subject: [IRCServices Coding] Version 5 (feature request)
830 Message-ID: <3c1a15c3.04346@achurch.org>
831
832 All of these are things I've been thinking about, but either haven't
833 gotten around to implementing yet or have decided to hold off on for the
834 next version. With regard to language files in particular, I haven't come
835 up with a good implementation yet for per-module language strings, but I
836 figure that at least initially, people who contribute modules will do so
837 with one language only (their own) so it's not that big of a deal.
838
839 --Andrew Church
840 achurch@achurch.org
841 http://achurch.org/
842
843 >Hi,
844 >
845 >1. what about adding a command to dynamically load/unload modules
846 >without having to restart/rehash services (e.g. /operserv
847 >loadmod|unloadmod <modulename>) ?
848 >2. would it be possible to add an include function for modules.conf so
849 >each module (evt. coming in a package) could have its own config file.
850 >3. a dynamic way to include language files for modules would also be
851 >great, instead of having to insert your module-specific strings to a .l
852 >file and recompiling the whole stuff.
853 >
854 >Greetings
855 >
856 >Georges
857 >
858 >------------------------------------------------------------------
859 >To unsubscribe or change your subscription options, visit:
860 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
861
862 From mark at mhetherington.demon.co.uk Fri Dec 14 07:51:22 2001
863 From: mark at mhetherington.demon.co.uk (Mark Hetherington)
864 Date: Sat Oct 23 23:09:11 2004
865 Subject: [IRCServices Coding] v5.0a7 - sline module
866 In-Reply-To: <3C1965A0.3000409@pcisys.net>
867 Message-ID: <NFBBKFAFGLNBHGEDBKDMOEGNCHAA.mark@mhetherington.demon.co.uk>
868
869 Had similar problems myself. After some digging, it seems the reason for the
870 'unknown directives' is that they are stored in the table for the main
871 configuration (services.conf parser init.c) rather than the module
872 configuration (modules.conf parser operserv/main.c) so when parsing the
873 operserv directives, the configuration parser has no access to their
874 definitions. The configuration reoutine seems to ignore errors such as this
875 so ultimately it should not stop services coming online, but I will result
876 in those directives being ignored.
877
878 Maybe the message should be altered to 'Ignored unknown directive %s' or
879 'Unknown directive %s ignored'
880
881 It may be a rather trivial cut/paste to address the issue but I have not
882 investigated this any further at this time.
883
884 The sline problem you have experienced suggests you have not loaded a
885 protocol for services. Check services.conf and add in an appropriate
886 LoadModule protocol/protocolname. See the comments in that section for
887 information.
888
889
890 Mark.
891
892 > -----Original Message-----
893 > From: ircservices-coding-admin@ircservices.za.net
894 > [mailto:ircservices-coding-admin@ircservices.za.net]On Behalf Of Ryan
895 > Riley
896 > Sent: 14 December 2001 02:36
897 > To: IRCServices-Coding@ircservices.za.net
898 > Subject: [IRCServices Coding] v5.0a7 - sline module
899 >
900 >
901 > I just grabbed a copy of Alpha7 for a night of fun testing, but I've run
902 > into an issue. I did the standard install, modified the 2 example
903 > configs to fit my needs, and I get this on startup:
904 > [irc@zogg bin]$ ./services -nofork
905 > [Dec 13 21:30:09 2001] Services 5.0a7 starting up
906 > [Dec 13 21:30:09 2001] modules.conf:180: Unknown directive `LogMaxUsers'
907 > [Dec 13 21:30:09 2001] modules.conf:226: Unknown directive `WallGetpass'
908 > [Dec 13 21:30:09 2001] modules.conf:233: Unknown directive `WallSetpass'
909 > [Dec 13 21:30:09 2001] modules: Unable to load module `operserv/sline':
910 > /home/irc/devel/services/bin/lib/modules/operserv/sline.so: undefined
911 > symbol: protocol_features
912 > [Dec 13 21:30:09 2001] FATAL: Error loading modules, aborting
913 >
914 > That undefined symbol error doesn't pass by me as being a good thing, so
915 > I figured I'd mention it here.
916 > I've tried commenting out all of the operserv/sline references in
917 > modules.conf, but it attempts to load it anyway. (I haven't taken a
918 > dive into the source yet to figure out how the new module system works,
919 > so this could very well be normal.)
920 > I'm on a RedHat 7.1 machine if that makes a difference.
921 >
922 > Thanks
923 > Ryan Riley
924 >
925 >
926 > ------------------------------------------------------------------
927 > To unsubscribe or change your subscription options, visit:
928 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
929
930
931 From griever at t2n.org Fri Dec 14 11:55:40 2001
932 From: griever at t2n.org (Finny Merrill)
933 Date: Sat Oct 23 23:09:11 2004
934 Subject: [IRCServices Coding] Services 5
935 In-Reply-To: <NDBBLDHKLKMANPGMACIGCEKLCMAA.rg@tcslon.com>
936 Message-ID: <Pine.LNX.4.33.0112141355220.31857-100000@linux.ircd-net.org>
937
938 On Fri, 14 Dec 2001, Russell Garrett wrote:
939
940 > Just first comments on this:
941 >
942 > For an alpha, it looks great, I would put it on my (small) production
943 > network would it be for a rather annoying bug:
944 >
945 > IRCServices 5 seems to have a few problems shutting down... on one of
946 > my servers, it dumped 16Mb of "Server Segfaulting" messages to the
947 > log before dying, and on the second attempt dumped a similar amount
948 > to SNotices (granted it gave my test network a good load test ;) On
949 > my other server, it sapped up all the CPU, and required a reboot. (I
950 > was stopping services both by /squitting and by SIGTERM).
951 -dumpcore (may be to dashes) to ./configure
952 >
953 > Other than that, I love it :) The mailing features look pretty swish,
954 > and although I haven't looked at the modules much, it looks good.
955 >
956 > Keep up the good work,
957 >
958 >
959 > Russ Garrett (russ@garrett.co.uk)
960 >
961 > ------------------------------------------------------------------
962 > To unsubscribe or change your subscription options, visit:
963 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
964 >
965
966
967 From zogg at pcisys.net Fri Dec 14 12:21:59 2001
968 From: zogg at pcisys.net (Ryan Riley)
969 Date: Sat Oct 23 23:09:11 2004
970 Subject: [IRCServices Coding] Services 5
971 References: <Pine.LNX.4.33.0112141355220.31857-100000@linux.ircd-net.org>
972 Message-ID: <3C1A5F67.6080806@pcisys.net>
973
974 Here's a backtrace from that particuliar problem.
975
976 (gdb) bt
977 #0 0x4015ccbc in ?? ()
978 #1 0x080535fb in unload_module (module=0x812a0c8) at modules.c:406
979 #2 0x08053135 in modules_exit () at modules.c:109
980 #3 0x08051b90 in main (ac=1, av=0xbffffadc, envp=0xbffffae4) at main.c:406
981 #4 0x4003ce5e in __libc_start_main (main=0x805177c <main>, argc=1,
982 ubp_av=0xbffffadc, init=0x804b9a4 <_init>, fini=0x8057bc0 <_fini>,
983 rtld_fini=0x4000d3c4 <_dl_fini>, stack_end=0xbffffacc)
984 at ../sysdeps/generic/libc-start.c:129
985
986 Thanks
987 Ryan
988
989 Finny Merrill wrote:
990
991 >On Fri, 14 Dec 2001, Russell Garrett wrote:
992 >
993 >>Just first comments on this:
994 >>
995 >>For an alpha, it looks great, I would put it on my (small) production
996 >>network would it be for a rather annoying bug:
997 >>
998 >>IRCServices 5 seems to have a few problems shutting down... on one of
999 >>my servers, it dumped 16Mb of "Server Segfaulting" messages to the
1000 >>log before dying, and on the second attempt dumped a similar amount
1001 >>to SNotices (granted it gave my test network a good load test ;) On
1002 >>my other server, it sapped up all the CPU, and required a reboot. (I
1003 >>was stopping services both by /squitting and by SIGTERM).
1004 >>
1005 >-dumpcore (may be to dashes) to ./configure
1006 >
1007 >>Other than that, I love it :) The mailing features look pretty swish,
1008 >>and although I haven't looked at the modules much, it looks good.
1009 >>
1010 >>Keep up the good work,
1011 >>
1012 >>
1013 >>Russ Garrett (russ@garrett.co.uk)
1014 >>
1015 >>------------------------------------------------------------------
1016 >>To unsubscribe or change your subscription options, visit:
1017 >>http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1018 >>
1019 >
1020 >------------------------------------------------------------------
1021 >To unsubscribe or change your subscription options, visit:
1022 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1023 >
1024 >
1025
1026
1027
1028
1029 From v13 at priest.com Fri Dec 14 12:12:44 2001
1030 From: v13 at priest.com (v13@priest.com)
1031 Date: Sat Oct 23 23:09:11 2004
1032 Subject: [IRCServices Coding] coding... (svcs 5)
1033 Message-ID: <200112142012.WAA03993@ppp0.the.forthnet.gr>
1034
1035 For services 5:
1036
1037 I believe code like this (from operserv/main.c: do_killclones() )
1038
1039 if (match_usermask(clonemask, user) != 0) {
1040 char killreason[32];
1041 count++;
1042 snprintf(killreason, sizeof(killreason),
1043 "Cloning [%d]", count);
1044 kill_user(NULL, user->nick, killreason);
1045 }
1046
1047 should exist in seperate functions like:
1048
1049 int kill_mask(const char *mask, const char *reason)
1050 {
1051 int count=0;
1052 User *user;
1053
1054 for (user = first_user(); user; user = next_user())
1055 {
1056 if (match_usermask(mask, user) != 0)
1057 {
1058 char killreason[512];
1059
1060 count++;
1061 snprintf(killreason, sizeof(killreason),
1062 (reason == NULL ? "Cloning [%d]" : reason),
1063 count);
1064 kill_user(NULL, user->nick, killreason);
1065 }
1066 }
1067
1068 return(count);
1069 }
1070
1071 3rd party modules should not use their own code for things like this, since
1072 it exists allready.
1073
1074 <<V13>>
1075
1076 From beng at nc.rr.com Fri Dec 14 14:37:40 2001
1077 From: beng at nc.rr.com (Ben Goldstein)
1078 Date: Sat Oct 23 23:09:11 2004
1079 Subject: Fw: [IRCServices Coding] Alpha compile error
1080 Message-ID: <008501c184ef$f0e600a0$0300a8c0@asi200>
1081
1082 I don't know if Andrew meant to send this here, but it might be helpful for
1083 others. When I compiled I omitted the line completely to supress the error.
1084
1085 -- Ben Goldstein (beng@nc.rr.com)
1086
1087 ----- Original Message -----
1088 From: "Andrew Church" <achurch@achurch.org>
1089 To: <beng@nc.rr.com>
1090 Sent: Thursday, December 13, 2001 9:04 PM
1091 Subject: Re: [IRCServices Coding] Alpha compile error
1092
1093
1094 > >gcc -DCLEAN_COMPILE -O2 -Wall -Wmissing-prototypes -g -I../.. -c set.c -o
1095 > >set.o
1096 > >set.c: In function `do_set_timezone':
1097 > >set.c:487: wrong type argument to unary minus
1098 > >set.c:447: warning: `j' might be used uninitialized in this function
1099 > >
1100 > >487: j = ngi->timezone*60 - (-timezone);
1101 > >
1102 > >I'm not sure what this is even doing, I havn't dug into the code. But it
1103 > >doesn't seem that "timezone" alone is the correct var you meant to use
1104 here.
1105 >
1106 > Actually, it is, but it looks like it's not portable; I'll make a
1107 > workaround for the next release. In the meantime, either use Linux or
1108 just
1109 > remove the "- (-timezone)" (it's code for a case that should never happen
1110 > anyway, so it shouldn't matter too much).
1111 >
1112 > --Andrew Church
1113 > achurch@achurch.org
1114 > http://achurch.org/
1115 >
1116 > >-- Ben Goldstein (beng@nc.rr.com)
1117
1118
1119
1120
1121 From achurch at achurch.org Sat Dec 15 10:45:50 2001
1122 From: achurch at achurch.org (Andrew Church)
1123 Date: Sat Oct 23 23:09:11 2004
1124 Subject: [IRCServices Coding] coding... (svcs 5)
1125 Message-ID: <3c1aab53.04477@achurch.org>
1126
1127 Not worth it.
1128
1129 >For services 5:
1130 >
1131 >I believe code like this (from operserv/main.c: do_killclones() )
1132 >
1133 > if (match_usermask(clonemask, user) != 0) {
1134 > char killreason[32];
1135 > count++;
1136 > snprintf(killreason, sizeof(killreason),
1137 > "Cloning [%d]", count);
1138 > kill_user(NULL, user->nick, killreason);
1139 > }
1140 >
1141 >should exist in seperate functions like:
1142 >
1143 >int kill_mask(const char *mask, const char *reason)
1144 >{
1145 > int count=0;
1146 > User *user;
1147 >
1148 > for (user = first_user(); user; user = next_user())
1149 > {
1150 > if (match_usermask(mask, user) != 0)
1151 > {
1152 > char killreason[512];
1153 >
1154 > count++;
1155 > snprintf(killreason, sizeof(killreason),
1156 > (reason == NULL ? "Cloning [%d]" : reason),
1157 > count);
1158 > kill_user(NULL, user->nick, killreason);
1159 > }
1160 > }
1161 >
1162 > return(count);
1163 >}
1164 >
1165 >3rd party modules should not use their own code for things like this, sin
1166 >ce
1167 >it exists allready.
1168 >
1169 ><<V13>>
1170 >------------------------------------------------------------------
1171 >To unsubscribe or change your subscription options, visit:
1172 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1173
1174 --Andrew Church
1175 achurch@achurch.org
1176 http://achurch.org/
1177
1178 From stsimb at irc.gr Sat Dec 15 11:23:02 2001
1179 From: stsimb at irc.gr (Sotiris Tsimbonis)
1180 Date: Sat Oct 23 23:09:11 2004
1181 Subject: [IRCServices Coding] coding... (svcs 5)
1182 In-Reply-To: <3c1aab53.04477@achurch.org>
1183 Message-ID: <Pine.LNX.4.43.0112152119540.14976-100000@nana.forthnet.gr>
1184
1185 On Sat, 15 Dec 2001, Andrew Church wrote:
1186 > >For services 5:
1187 > >I believe code like this (from operserv/main.c: do_killclones() )
1188 [...]
1189 > >should exist in seperate functions like:
1190 > >int kill_mask(const char *mask, const char *reason)
1191 [...]
1192 > >}
1193 >
1194 > Not worth it.
1195
1196 Why not? Wouldn't this help code re-use in 3rd party modules? One wouldn't
1197 have to re-invent the wheel, and if there was an error, it would only have
1198 to be fixed in one place..
1199
1200 Sotiris.
1201
1202
1203 From v13 at priest.com Sat Dec 15 11:45:47 2001
1204 From: v13 at priest.com (v13@priest.com)
1205 Date: Sat Oct 23 23:09:11 2004
1206 Subject: [IRCServices Coding] srvcs 5
1207 Message-ID: <200112151945.VAA04508@ppp0.the.forthnet.gr>
1208
1209 A note about callbacks:
1210
1211 Callbacks are nice when someone wants to add another function to services,
1212 but are no good, when someone wants to extend an existing one.
1213
1214 I was trying to make nickserv to send one more line for the INFO command.
1215 It is possible to return the line at the begining but not at the end.
1216 I bypassed the strtok() problem, by duplicating the buffer to something like:
1217 "A INFO nick" and then calling strtok once, for this one.
1218 This way successive calls to strtok whould return the "INFO nick" part.
1219 But it is not possible to call my function *AFTER* do_info. I tried to
1220 register my function with a higher priority and then call do_info from my
1221 function, but it was no good. get_module_symbol() cannot find do_info()
1222 (neither nickserv() ). I believe this is because of the static decleration of
1223 the functions.
1224
1225 Using "nm -g" it seems that those functions are not exported from the
1226 nickserv module.
1227
1228 Is this going to change, or we should prepare for patching the main services
1229 code ?
1230
1231 <<V13>>
1232
1233 From griever at t2n.org Sat Dec 15 12:12:48 2001
1234 From: griever at t2n.org (Finny Merrill)
1235 Date: Sat Oct 23 23:09:11 2004
1236 Subject: [IRCServices Coding] srvcs 5
1237 In-Reply-To: <200112151945.VAA04508@ppp0.the.forthnet.gr>
1238 Message-ID: <Pine.LNX.4.33.0112151357060.4482-100000@linux.ircd-net.org>
1239
1240 On Sat, 15 Dec 2001 v13@priest.com wrote:
1241
1242 > A note about callbacks:
1243 >
1244 > Callbacks are nice when someone wants to add another function to services,
1245 > but are no good, when someone wants to extend an existing one.
1246 >
1247 > I was trying to make nickserv to send one more line for the INFO command.
1248 *snip*
1249
1250
1251 Command* lookup_cmd(Module* id, char* name)
1252 will return the current Command* stucture for command name
1253 which can then be removed and replaced, and you can call the function.
1254 >
1255 > Using "nm -g" it seems that those functions are not exported from the
1256 > nickserv module.
1257 >
1258 > Is this going to change, or we should prepare for patching the main services
1259 > code ?
1260
1261 No need
1262 > <<V13>>
1263 > ------------------------------------------------------------------
1264 > To unsubscribe or change your subscription options, visit:
1265 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1266 >
1267
1268
1269 From v13 at priest.com Sat Dec 15 12:34:44 2001
1270 From: v13 at priest.com (v13@priest.com)
1271 Date: Sat Oct 23 23:09:11 2004
1272 Subject: [IRCServices Coding] srvcs 5
1273 In-Reply-To: <Pine.LNX.4.33.0112151357060.4482-100000@linux.ircd-net.org>
1274 References: <Pine.LNX.4.33.0112151357060.4482-100000@linux.ircd-net.org>
1275 Message-ID: <200112152034.WAA04723@ppp0.the.forthnet.gr>
1276
1277 On Saturday 15 December 2001 22:12, Finny Merrill wrote:
1278 > Command* lookup_cmd(Module* id, char* name)
1279 > will return the current Command* stucture for command name
1280 > which can then be removed and replaced, and you can call the function.
1281
1282 Thanx. I got do_info() from
1283
1284 (*(lookup_cmd(module_nickserv, "INFO")))->routine
1285
1286 and put my function there, which calls the old one before sending
1287 anything to the user and it worked.
1288
1289 <<V13>>
1290
1291 From griever at t2n.org Sat Dec 15 12:39:16 2001
1292 From: griever at t2n.org (Finny Merrill)
1293 Date: Sat Oct 23 23:09:11 2004
1294 Subject: [IRCServices Coding] srvcs 5
1295 In-Reply-To: <200112152034.WAA04723@ppp0.the.forthnet.gr>
1296 Message-ID: <Pine.LNX.4.33.0112151438340.4879-100000@linux.ircd-net.org>
1297
1298 On Sat, 15 Dec 2001 v13@priest.com wrote:
1299
1300 > On Saturday 15 December 2001 22:12, Finny Merrill wrote:
1301 > > Command* lookup_cmd(Module* id, char* name)
1302 > > will return the current Command* stucture for command name
1303 > > which can then be removed and replaced, and you can call the function.
1304 >
1305 > Thanx. I got do_info() from
1306 >
1307 > (*(lookup_cmd(module_nickserv, "INFO")))->routine
1308
1309 personally I think this would be a safer way:
1310
1311 Command *temp;
1312 temp = lookup_cmd(module_nickserv, "INFO);
1313 temp->routine(...);
1314
1315
1316 >
1317 > and put my function there, which calls the old one before sending
1318 > anything to the user and it worked.
1319 >
1320 > <<V13>>
1321 > ------------------------------------------------------------------
1322 > To unsubscribe or change your subscription options, visit:
1323 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1324 >
1325
1326
1327 From v13 at priest.com Sun Dec 16 12:50:03 2001
1328 From: v13 at priest.com (v13@priest.com)
1329 Date: Sat Oct 23 23:09:11 2004
1330 Subject: [IRCServices Coding] svcs 5
1331 Message-ID: <200112162050.WAA04418@ppp0.the.forthnet.gr>
1332
1333 The definition of "receive message" callback is wrong in the documentation
1334 It says:
1335
1336 Parameters: char *source, int ac, char **av
1337
1338 It should be:
1339 Parameters: char *source, char *cmd, int ac, char **av
1340
1341 in the protocol sources, the functions for this callback are declared as:
1342 static int do_receive_message(char *source, char *cmd, int ac, char **av)
1343
1344 <<V13>>
1345
1346 From v13 at priest.com Sun Dec 16 14:20:32 2001
1347 From: v13 at priest.com (v13@priest.com)
1348 Date: Sat Oct 23 23:09:11 2004
1349 Subject: [IRCServices Coding] svcs5
1350 Message-ID: <200112162220.AAA04668@ppp0.the.forthnet.gr>
1351
1352 in messages.c:
1353
1354 static void m_time(char *source, int ac, char **av)
1355 {
1356 time_t t;
1357 struct tm *tm;
1358 char buf[64];
1359
1360 time(&t);
1361 tm = localtime(&t);
1362 strftime(buf, sizeof(buf), "%a %b %d %H:%M:%S %Y %Z", tm);
1363 send_cmd(NULL, "391 :%s", buf);
1364 }
1365
1366 This should be:
1367
1368 send_cmd(NULL, "391 %s %s :%s", source, ServerName, buf);
1369
1370 or something like that...
1371
1372 <<V13>>
1373
1374 From achurch at achurch.org Mon Dec 17 07:17:25 2001
1375 From: achurch at achurch.org (Andrew Church)
1376 Date: Sat Oct 23 23:09:11 2004
1377 Subject: [IRCServices Coding] coding... (svcs 5)
1378 Message-ID: <3c1d2138.07054@achurch.org>
1379
1380 >On Sat, 15 Dec 2001, Andrew Church wrote:
1381 >> >For services 5:
1382 >> >I believe code like this (from operserv/main.c: do_killclones() )
1383 >[...]
1384 >> >should exist in seperate functions like:
1385 >> >int kill_mask(const char *mask, const char *reason)
1386 >[...]
1387 >> >}
1388 >>
1389 >> Not worth it.
1390 >
1391 >Why not? Wouldn't this help code re-use in 3rd party modules? One wouldn't
1392 >have to re-invent the wheel, and if there was an error, it would only have
1393 >to be fixed in one place..
1394
1395 If it was actually being used in multiple places, I'd agree with you,
1396 but (unless I'm forgetting somewhere) it's not, and splitting the code up
1397 anyway would be a waste of time. If this actually becomes an issue later
1398 I'll reconsider it then.
1399
1400 --Andrew Church
1401 achurch@achurch.org
1402 http://achurch.org/
1403
1404 From achurch at achurch.org Mon Dec 17 07:33:50 2001
1405 From: achurch at achurch.org (Andrew Church)
1406 Date: Sat Oct 23 23:09:11 2004
1407 Subject: [IRCServices Coding] Services 5
1408 Message-ID: <3c1d216e.07065@achurch.org>
1409
1410 >Here's a backtrace from that particuliar problem.
1411 >
1412 >(gdb) bt
1413 >#0 0x4015ccbc in ?? ()
1414 >#1 0x080535fb in unload_module (module=0x812a0c8) at modules.c:406
1415 >#2 0x08053135 in modules_exit () at modules.c:109
1416 >#3 0x08051b90 in main (ac=1, av=0xbffffadc, envp=0xbffffae4) at main.c:406
1417 >#4 0x4003ce5e in __libc_start_main (main=0x805177c <main>, argc=1,
1418 > ubp_av=0xbffffadc, init=0x804b9a4 <_init>, fini=0x8057bc0 <_fini>,
1419 > rtld_fini=0x4000d3c4 <_dl_fini>, stack_end=0xbffffacc)
1420 > at ../sysdeps/generic/libc-start.c:129
1421
1422 Looks like some module is forgetting to remove its callbacks. Can you
1423 play around with commenting/uncommenting your LoadModule directives in
1424 services.conf until you find the module that causes the problem?
1425
1426 >Thanks
1427 >Ryan
1428 >
1429 >Finny Merrill wrote:
1430 >
1431 >>On Fri, 14 Dec 2001, Russell Garrett wrote:
1432 >>
1433 >>>Just first comments on this:
1434 >>>
1435 >>>For an alpha, it looks great, I would put it on my (small) production
1436 >>>network would it be for a rather annoying bug:
1437 >>>
1438 >>>IRCServices 5 seems to have a few problems shutting down... on one of
1439 >>>my servers, it dumped 16Mb of "Server Segfaulting" messages to the
1440 >>>log before dying, and on the second attempt dumped a similar amount
1441 >>>to SNotices (granted it gave my test network a good load test ;) On
1442 >>>my other server, it sapped up all the CPU, and required a reboot. (I
1443 >>>was stopping services both by /squitting and by SIGTERM).
1444 >>>
1445 >>-dumpcore (may be to dashes) to ./configure
1446 >>
1447 >>>Other than that, I love it :) The mailing features look pretty swish,
1448 >>>and although I haven't looked at the modules much, it looks good.
1449 >>>
1450 >>>Keep up the good work,
1451 >>>
1452 >>>
1453 >>>Russ Garrett (russ@garrett.co.uk)
1454 >>>
1455 >>>------------------------------------------------------------------
1456 >>>To unsubscribe or change your subscription options, visit:
1457 >>>http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1458 >>>
1459 >>
1460 >>------------------------------------------------------------------
1461 >>To unsubscribe or change your subscription options, visit:
1462 >>http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1463 >>
1464 >>
1465 >
1466 >
1467 >
1468 >------------------------------------------------------------------
1469 >To unsubscribe or change your subscription options, visit:
1470 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1471
1472 --Andrew Church
1473 achurch@achurch.org
1474 http://achurch.org/
1475
1476 From achurch at achurch.org Mon Dec 17 07:34:29 2001
1477 From: achurch at achurch.org (Andrew Church)
1478 Date: Sat Oct 23 23:09:11 2004
1479 Subject: [IRCServices Coding] srvcs 5
1480 Message-ID: <3c1d21e1.07076@achurch.org>
1481
1482 > A note about callbacks:
1483 >
1484 >Callbacks are nice when someone wants to add another function to services,
1485 >but are no good, when someone wants to extend an existing one.
1486
1487 Don't use callbacks for this, use the command system (commands.[ch]).
1488 The next alpha will have a `next' pointer in the command record which gets
1489 filled in when you call register_commands(), so you can call the original
1490 command's function directly.
1491
1492 >I was trying to make nickserv to send one more line for the INFO command.
1493 >It is possible to return the line at the begining but not at the end.
1494 >I bypassed the strtok() problem, by duplicating the buffer to something l
1495 >ike:
1496 >"A INFO nick" and then calling strtok once, for this one.
1497 >This way successive calls to strtok whould return the "INFO nick" part.
1498 >But it is not possible to call my function *AFTER* do_info. I tried to
1499 >register my function with a higher priority and then call do_info from my
1500 >
1501 >function, but it was no good. get_module_symbol() cannot find do_info()
1502 >(neither nickserv() ). I believe this is because of the static decleratio
1503 >n of
1504 >the functions.
1505 >
1506 >Using "nm -g" it seems that those functions are not exported from the
1507 >nickserv module.
1508 >
1509 >Is this going to change, or we should prepare for patching the main servi
1510 >ces
1511 >code ?
1512 >
1513 ><<V13>>
1514 >------------------------------------------------------------------
1515 >To unsubscribe or change your subscription options, visit:
1516 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1517
1518 --Andrew Church
1519 achurch@achurch.org
1520 http://achurch.org/
1521
1522 From v13 at priest.com Sun Dec 16 14:49:58 2001
1523 From: v13 at priest.com (v13@priest.com)
1524 Date: Sat Oct 23 23:09:11 2004
1525 Subject: [IRCServices Coding] Services 5
1526 In-Reply-To: <3c1d216e.07065@achurch.org>
1527 References: <3c1d216e.07065@achurch.org>
1528 Message-ID: <200112162249.AAA05350@ppp0.the.forthnet.gr>
1529
1530 On Monday 17 December 2001 09:33, Andrew Church wrote:
1531 > >Here's a backtrace from that particuliar problem.
1532 > >
1533 > >(gdb) bt
1534 > >#0 0x4015ccbc in ?? ()
1535 > >#1 0x080535fb in unload_module (module=0x812a0c8) at modules.c:406
1536 > >#2 0x08053135 in modules_exit () at modules.c:109
1537 > >#3 0x08051b90 in main (ac=1, av=0xbffffadc, envp=0xbffffae4) at main.c:406
1538 > >#4 0x4003ce5e in __libc_start_main (main=0x805177c <main>, argc=1,
1539 > > ubp_av=0xbffffadc, init=0x804b9a4 <_init>, fini=0x8057bc0 <_fini>,
1540 > > rtld_fini=0x4000d3c4 <_dl_fini>, stack_end=0xbffffacc)
1541 > > at ../sysdeps/generic/libc-start.c:129
1542 >
1543 > Looks like some module is forgetting to remove its callbacks. Can you
1544 > play around with commenting/uncommenting your LoadModule directives in
1545 > services.conf until you find the module that causes the problem?
1546
1547 Trying an:
1548
1549 (gdb) up
1550 (gdb) p module->name
1551
1552 whould show the module name
1553
1554 <<V13>>
1555
1556 From achurch at achurch.org Mon Dec 17 07:55:16 2001
1557 From: achurch at achurch.org (Andrew Church)
1558 Date: Sat Oct 23 23:09:11 2004
1559 Subject: [IRCServices Coding] svcs 5
1560 Message-ID: <3c1d265c.07147@achurch.org>
1561
1562 >The definition of "receive message" callback is wrong in the documentatio
1563 >n
1564 >It says:
1565 >
1566 >Parameters: char *source, int ac, char **av
1567 >
1568 >It should be:
1569 >Parameters: char *source, char *cmd, int ac, char **av
1570
1571 Thanks, fixed.
1572
1573 --Andrew Church
1574 achurch@achurch.org
1575 http://achurch.org/
1576
1577 From achurch at achurch.org Mon Dec 17 07:57:24 2001
1578 From: achurch at achurch.org (Andrew Church)
1579 Date: Sat Oct 23 23:09:11 2004
1580 Subject: [IRCServices Coding] Services 5
1581 Message-ID: <3c1d2730.07170@achurch.org>
1582
1583 >On Monday 17 December 2001 09:33, Andrew Church wrote:
1584 >> >Here's a backtrace from that particuliar problem.
1585 >> >
1586 >> >(gdb) bt
1587 >> >#0 0x4015ccbc in ?? ()
1588 >> >#1 0x080535fb in unload_module (module=0x812a0c8) at modules.c:406
1589 >> >#2 0x08053135 in modules_exit () at modules.c:109
1590 >> >#3 0x08051b90 in main (ac=1, av=0xbffffadc, envp=0xbffffae4) at
1591 > main.c:406
1592 >> >#4 0x4003ce5e in __libc_start_main (main=0x805177c <main>, argc=1
1593 >,
1594 >> > ubp_av=0xbffffadc, init=0x804b9a4 <_init>, fini=0x8057bc0 <_
1595 >fini>,
1596 >> > rtld_fini=0x4000d3c4 <_dl_fini>, stack_end=0xbffffacc)
1597 >> > at ../sysdeps/generic/libc-start.c:129
1598 >>
1599 >> Looks like some module is forgetting to remove its callbacks. Can
1600 > you
1601 >> play around with commenting/uncommenting your LoadModule directives in
1602 >> services.conf until you find the module that causes the problem?
1603 >
1604 >Trying an:
1605 >
1606 >(gdb) up
1607 >(gdb) p module->name
1608 >
1609 >whould show the module name
1610
1611 No, that would show the name of the module being unloaded, not the one
1612 whose callback was being called.
1613
1614 --Andrew Church
1615 achurch@achurch.org
1616 http://achurch.org/
1617
1618 From v13 at priest.com Sun Dec 16 17:09:35 2001
1619 From: v13 at priest.com (v13@priest.com)
1620 Date: Sat Oct 23 23:09:11 2004
1621 Subject: [IRCServices Coding] svcs5
1622 Message-ID: <200112170109.DAA07729@ppp0.the.forthnet.gr>
1623
1624 I don't understand this completely, but i get coredumps when
1625 doing /msg chanserv levels #chan set ignore 6
1626
1627 it seems that there is something wrong...
1628
1629 in chanserv/util.c:
1630
1631 ChannelInfo *makechan(const char *chan)
1632 {
1633 ChannelInfo *ci;
1634
1635 ci = scalloc(sizeof(ChannelInfo), 1);
1636 strscpy(ci->name, chan, CHANMAX);
1637 ci->time_registered = time(NULL);
1638 >>>>> reset_levels(ci, 0); <<<<<<
1639 return add_channelinfo(ci);
1640 }
1641
1642 i bellieve this should be:
1643 reset_levels(ci,1);
1644
1645
1646 also in chanserv/access.c:
1647
1648 EXPORT_FUNC(reset_levels)
1649 void reset_levels(ChannelInfo *ci, int set)
1650 {
1651 int i;
1652
1653 >>>>> free(ci->levels); <<<<<
1654 if (set) {
1655 ci->levels = scalloc(CA_SIZE, sizeof(*ci->levels));
1656 for (i = 0; i < CA_SIZE; i++)
1657 ci->levels[i] = def_levels[i];
1658 } else {
1659 ci->levels = NULL;
1660 }
1661 }
1662
1663 this may try to free something that is not malloced (if i get this right)
1664 when it is called from makechan() (free(NULL) works under glibc, but i don't
1665 know how portable/standard it is)
1666
1667
1668 finaly in chanserv/access-levels.c, in do_levels():
1669
1670 for (i = 0; levelinfo[i].what >= 0; i++) {
1671 if (stricmp(levelinfo[i].name, what) == 0) {
1672 if (ci->levels)
1673 reset_levels(ci, 1);
1674 >>>>> ci->levels[levelinfo[i].what] = level; <<<<<<
1675 notice_lang(s_ChanServ, u, CHAN_LEVELS_CHANGED,
1676 levelinfo[i].name, chan, level);
1677 put_channelinfo(ci);
1678 return;
1679 }
1680 }
1681
1682 the marked line is where i get the coredump...
1683 it doesn't make any sense..
1684 if ci->levels is NULL, then reset_levels is not called...
1685 so it remains NULL and then ci->levels[] is used
1686
1687 (from gdb) (not wrapped)
1688
1689 (gdb) bt
1690 #0 do_levels (u=0x814cf0c) at access-levels.c:324
1691 #1 0x0804df4c in run_cmd (service=0x8144bd4 "ChanServ", u=0x814cf0c, id=0x81449c4, cmd=0xbffff5f2 "levels") at commands.c:158
1692 #2 0x401a0070 in chanserv (source=0xbffff820 "V13", target=0xbffff5e8 "chanserv", buf=0xbffff5f2 "levels") at main.c:226
1693 #3 0x08054cba in call_callback_5 (module=0x0, id=25, arg1=0xbffff820, arg2=0xbffff5e8, arg3=0xbffff5f2, arg4=0x0, arg5=0x0) at modules.c:605
1694 #4 0x08052f3f in m_privmsg (source=0xbffff820 "V13", ac=2, av=0x814cd8c) at messages.c:169
1695 #5 0x08055260 in process () at process.c:131
1696 #6 0x08056395 in check_sockets () at sockets.c:362
1697 #7 0x080526cc in main (ac=3, av=0xbffffa54, envp=0xbffffa64) at main.c:377
1698 #8 0x4004d823 in __libc_start_main () from /lib/libc.so.6
1699 (gdb) l access-levels.c:324
1700 319 }
1701 320 for (i = 0; levelinfo[i].what >= 0; i++) {
1702 321 if (stricmp(levelinfo[i].name, what) == 0) {
1703 322 if (ci->levels)
1704 323 reset_levels(ci, 1);
1705 324 ci->levels[levelinfo[i].what] = level;
1706 325 notice_lang(s_ChanServ, u, CHAN_LEVELS_CHANGED,
1707 326 levelinfo[i].name, chan, level);
1708 327 put_channelinfo(ci);
1709 328 return;
1710 (gdb) p i
1711 $1 = 224
1712
1713
1714 <<V13>>
1715
1716 From achurch at achurch.org Mon Dec 17 16:47:05 2001
1717 From: achurch at achurch.org (Andrew Church)
1718 Date: Sat Oct 23 23:09:11 2004
1719 Subject: [IRCServices Coding] svcs5
1720 Message-ID: <3c1da32d.07437@achurch.org>
1721
1722 >in messages.c:
1723 >
1724 >static void m_time(char *source, int ac, char **av)
1725 >{
1726 > time_t t;
1727 > struct tm *tm;
1728 > char buf[64];
1729 >
1730 > time(&t);
1731 > tm = localtime(&t);
1732 > strftime(buf, sizeof(buf), "%a %b %d %H:%M:%S %Y %Z", tm);
1733 > send_cmd(NULL, "391 :%s", buf);
1734 >}
1735 >
1736 >This should be:
1737 >
1738 >send_cmd(NULL, "391 %s %s :%s", source, ServerName, buf);
1739 >
1740 >or something like that...
1741
1742 I could have sworn I fixed this at least once before... oh well.
1743 Fixed (in the 4.5 branch as well), thanks.
1744
1745 ><<V13>>
1746 >------------------------------------------------------------------
1747 >To unsubscribe or change your subscription options, visit:
1748 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1749
1750 --Andrew Church
1751 achurch@achurch.org
1752 http://achurch.org/
1753
1754 From Georges at Berscheid.lu Mon Dec 17 00:43:35 2001
1755 From: Georges at Berscheid.lu (Georges Berscheid)
1756 Date: Sat Oct 23 23:09:11 2004
1757 Subject: [IRCServices Coding] Services 5 having problems to shut down
1758 Message-ID: <EMEAJDMIHJFMOHONHAEDMELPCDAA.Georges@Berscheid.lu>
1759
1760 Hi,
1761
1762 when I started services with a little error in my config file this happened:
1763
1764 [Dec 16 22:38:27 2001] Read error from server: Success
1765 [Dec 16 22:38:27 2001] Services terminating: Segmentation fault
1766 [Dec 16 22:38:27 2001] Services terminating: Segmentation fault
1767 [Dec 16 22:38:27 2001] Services terminating: Segmentation fault
1768
1769 First, I didn't see that something was wrong, but suddenly many other
1770 processes on the server crashed due to 'Out of memory'. That's what services
1771 said 10 minutes later in the .log file as well. (At this point the .log file
1772 had 290MB)
1773
1774 [Dec 16 22:48:15 2001] Out of memory!
1775 [Dec 16 22:48:15 2001] Out of memory!
1776 [Dec 16 22:48:15 2001] Out of memory!
1777 [Dec 16 22:48:15 2001] Out of memory!
1778
1779 Seems like the get into an endless malloc-loop somewhere. Unfortunately
1780 there is no core dump, because they were still alive after 10 minutes, and I
1781 had to kill them through the console.
1782
1783 Georges
1784
1785
1786 From rg at tcslon.com Mon Dec 17 01:18:02 2001
1787 From: rg at tcslon.com (Russell Garrett)
1788 Date: Sat Oct 23 23:09:11 2004
1789 Subject: [IRCServices Coding] Services 5 having problems to shut down
1790 In-Reply-To: <EMEAJDMIHJFMOHONHAEDMELPCDAA.Georges@Berscheid.lu>
1791 Message-ID: <NDBBLDHKLKMANPGMACIGIEGBCNAA.rg@tcslon.com>
1792
1793 > when I started services with a little error in my config
1794 > file this happened:
1795 >
1796 > [Dec 16 22:38:27 2001] Read error from server: Success
1797 > [Dec 16 22:38:27 2001] Services terminating: Segmentation fault
1798 > [Dec 16 22:38:27 2001] Services terminating: Segmentation fault
1799 > [Dec 16 22:38:27 2001] Services terminating: Segmentation fault
1800
1801 I saw this too, I think, but I caught it before it ran out of
1802 memory...
1803
1804 I'm still trying to find a computer to debug it on - I was previously
1805 using a colocated server which I had no physical access to - a bad
1806 move :)
1807
1808 Russ Garrett (russ@garrett.co.uk)
1809
1810
1811 From achurch at achurch.org Mon Dec 17 18:28:16 2001
1812 From: achurch at achurch.org (Andrew Church)
1813 Date: Sat Oct 23 23:09:11 2004
1814 Subject: [IRCServices Coding] Services 5 having problems to shut down
1815 Message-ID: <3c1dbaf6.12326@achurch.org>
1816
1817 The endless loop is fixed, thanks. I'll look into the seg-fault later
1818 (I suspect it's the same problem as was reported earlier).
1819
1820 --Andrew Church
1821 achurch@achurch.org
1822 http://achurch.org/
1823
1824 >Hi,
1825 >
1826 >when I started services with a little error in my config file this happened:
1827 >
1828 >[Dec 16 22:38:27 2001] Read error from server: Success
1829 >[Dec 16 22:38:27 2001] Services terminating: Segmentation fault
1830 >[Dec 16 22:38:27 2001] Services terminating: Segmentation fault
1831 >[Dec 16 22:38:27 2001] Services terminating: Segmentation fault
1832 >
1833 >First, I didn't see that something was wrong, but suddenly many other
1834 >processes on the server crashed due to 'Out of memory'. That's what services
1835 >said 10 minutes later in the .log file as well. (At this point the .log file
1836 >had 290MB)
1837 >
1838 >[Dec 16 22:48:15 2001] Out of memory!
1839 >[Dec 16 22:48:15 2001] Out of memory!
1840 >[Dec 16 22:48:15 2001] Out of memory!
1841 >[Dec 16 22:48:15 2001] Out of memory!
1842 >
1843 >Seems like the get into an endless malloc-loop somewhere. Unfortunately
1844 >there is no core dump, because they were still alive after 10 minutes, and I
1845 >had to kill them through the console.
1846 >
1847 >Georges
1848 >
1849 >------------------------------------------------------------------
1850 >To unsubscribe or change your subscription options, visit:
1851 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
1852
1853 From v13 at priest.com Mon Dec 17 05:47:22 2001
1854 From: v13 at priest.com (v13@priest.com)
1855 Date: Sat Oct 23 23:09:11 2004
1856 Subject: [IRCServices Coding] akills
1857 Message-ID: <200112171348.PAA02940@ppp0.the.forthnet.gr>
1858
1859 As of bahamut 1.4.29, s_serv.c -> m_akill() (in bahamut ircd sources)
1860 has:
1861
1862 /* whether or not we have a length, this is still a temporary akill */
1863 /* if the length is over a day, or nonexistant, we call this a 'forever'
1864 * akill and set ->hold to 0xFFFFFFFF to indicate such
1865 * this is a hack to prevent
1866 * forever akills from being removed unless by an explicit /rehash */
1867 if(length>86400 || !length)
1868 aconf->hold=0xFFFFFFFF;
1869 else
1870 aconf->hold=timeset+length;
1871
1872 which means that akills whith expire time greater than a day, will never
1873 expire, unless explicity removed. This way, netsplits may prevent akills
1874 to be removed from servers, when services send the RAKILL.
1875
1876 This can be bypassed, by forcing services to send AKILLs, with expire
1877 time less than 86400 by
1878 changing (in operserv/akill.c send_akill() ):
1879
1880 call_callback_5(module, cb_send_akill,
1881 username, host,
1882 akill->expires,
1883 akill->who,
1884 make_reason(AkillReason, akill));
1885
1886 to:
1887
1888 call_callback_5(module, cb_send_akill,
1889 username, host,
1890 ( (akill->expires - now) > 86399 ? now + 86399 : akill->expires),
1891 akill->who,
1892 make_reason(AkillReason, akill));
1893
1894 or better, change the callback in the bahamut protocol module:
1895
1896 static int do_send_akill(const char *username, const char *host,
1897 time_t expires, const char *who, const char *reason)
1898 {
1899 time_t now = time(NULL);
1900
1901 send_cmd(ServerName, "AKILL %s %s %ld %s %ld :%s", host, username,
1902 (expires && expires > now) ? expires - now : 0,
1903 who ? who : "<unknown>", now, reason);
1904 return 1;
1905 }
1906
1907 to:
1908
1909 static int do_send_akill(const char *username, const char *host,
1910 time_t expires, const char *who, const char *reason)
1911 {
1912 time_t now = time(NULL);
1913
1914 if (expires>now)
1915 {
1916 expires-=now;
1917 if (expires>=86400)
1918 expires=86399;
1919 }
1920
1921 send_cmd(ServerName, "AKILL %s %s %ld %s %ld :%s", host, username,
1922 expires, who ? who : "<unknown>", now, reason);
1923 return 1;
1924 }
1925
1926 This way akills for 5 days, will be send up to 5 times on each server
1927 (Removed after 86399 seconds and send again when a matching user tries ti use
1928 the server). This should not add much overhead and non-expiring akills will
1929 not be affected.
1930
1931 <<V13>>
1932
1933 From achurch at achurch.org Mon Dec 17 23:29:46 2001
1934 From: achurch at achurch.org (Andrew Church)
1935 Date: Sat Oct 23 23:09:11 2004
1936 Subject: [IRCServices Coding] akills
1937 Message-ID: <3c1e020e.15231@achurch.org>
1938
1939 > if (expires>now)
1940 > {
1941 > expires-=now;
1942 > if (expires>=86400)
1943 > expires=86399;
1944 > }
1945
1946 I see someone hasn't read the coding guidelines...
1947
1948 >This way akills for 5 days, will be send up to 5 times on each server
1949 >(Removed after 86399 seconds and send again when a matching user tries ti
1950 > use
1951 >the server). This should not add much overhead and non-expiring akills wi
1952 >ll
1953 >not be affected.
1954
1955 I don't see why this is needed. The autokills-don't-disappear-if-
1956 server-is-split problem existed before the AKILL message got an expiry
1957 time, and it was always solved by rehashing; I don't see why the same
1958 approach can't be used with Bahamut as well. IMNSHO, I think the current
1959 (if that's current) behavior of Bahamut is buggy; since when does "one day
1960 or more" equal "forever"?
1961
1962 --Andrew Church
1963 achurch@achurch.org
1964 http://achurch.org/
1965
1966 From dooley at risanet.com Mon Dec 17 11:01:26 2001
1967 From: dooley at risanet.com (Dooley)
1968 Date: Sat Oct 23 23:09:11 2004
1969 Subject: [IRCServices Coding] Services 5 having problems to shut down
1970 References: <3c1dbaf6.12326@achurch.org>
1971 Message-ID: <006501c1872d$40e593b0$dd91a8c0@criley>
1972
1973 Anyone know what the fix is for this as it would be nice to not have to
1974 console kill it while playing.
1975
1976
1977 Dooley
1978
1979 ----- Original Message -----
1980 From: "Andrew Church" <achurch@achurch.org>
1981 To: <ircservices-coding@ircservices.za.net>
1982 Sent: Monday, December 17, 2001 3:28 AM
1983 Subject: Re: [IRCServices Coding] Services 5 having problems to shut down
1984
1985
1986 > The endless loop is fixed, thanks. I'll look into the seg-fault
1987 later
1988 > (I suspect it's the same problem as was reported earlier).
1989 >
1990 > --Andrew Church
1991 > achurch@achurch.org
1992 > http://achurch.org/
1993 >
1994 > >Hi,
1995 > >
1996 > >when I started services with a little error in my config file this
1997 happened:
1998 > >
1999 > >[Dec 16 22:38:27 2001] Read error from server: Success
2000 > >[Dec 16 22:38:27 2001] Services terminating: Segmentation fault
2001 > >[Dec 16 22:38:27 2001] Services terminating: Segmentation fault
2002 > >[Dec 16 22:38:27 2001] Services terminating: Segmentation fault
2003 > >
2004 > >First, I didn't see that something was wrong, but suddenly many other
2005 > >processes on the server crashed due to 'Out of memory'. That's what
2006 services
2007 > >said 10 minutes later in the .log file as well. (At this point the .log
2008 file
2009 > >had 290MB)
2010 > >
2011 > >[Dec 16 22:48:15 2001] Out of memory!
2012 > >[Dec 16 22:48:15 2001] Out of memory!
2013 > >[Dec 16 22:48:15 2001] Out of memory!
2014 > >[Dec 16 22:48:15 2001] Out of memory!
2015 > >
2016 > >Seems like the get into an endless malloc-loop somewhere. Unfortunately
2017 > >there is no core dump, because they were still alive after 10 minutes,
2018 and I
2019 > >had to kill them through the console.
2020 > >
2021 > >Georges
2022 > >
2023 > >------------------------------------------------------------------
2024 > >To unsubscribe or change your subscription options, visit:
2025 > >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2026 > ------------------------------------------------------------------
2027 > To unsubscribe or change your subscription options, visit:
2028 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2029 >
2030
2031
2032 From achurch at achurch.org Thu Dec 20 14:21:43 2001
2033 From: achurch at achurch.org (Andrew Church)
2034 Date: Sat Oct 23 23:09:11 2004
2035 Subject: [IRCServices Coding] Services 5.0 alpha 8 released
2036 Message-ID: <3c2175d6.46663@achurch.org>
2037
2038 I've put up a new alpha tarball, alpha 8; it can be downloaded from
2039 the same place as the last one (http://achurch.org/services/5.0-alpha/).
2040 The crashing and infinite loop bugs reported before should be fixed, and
2041 rehashing has now been added. The change log is as follows:
2042
2043 2001/12/20 a8 SIGHUP now re-reads the configuration files instead of
2044 restarting.
2045 2001/12/20 SIGUSR2 no longer opens log file if it was closed before.
2046 2001/12/20 Added reconfiguration support for modules.
2047 2001/12/20 Renamed AkillReason config directive to AutokillReason.
2048 2001/12/19 Fixed crash when unloading modules on exit.
2049 2001/12/17 Fixed infinite loop on signal. Reported by Georges
2050 Berscheid <Georges@Berscheid.lu>
2051 2001/12/14 Fixed various problems caused by signal timing.
2052 2001/12/14 Fixed compile error on FreeBSD. Reported by Ben Goldstein
2053 <beng@nc.rr.com>
2054
2055 --Andrew Church
2056 achurch@achurch.org
2057 http://achurch.org/
2058
2059 From Georges at Berscheid.lu Thu Dec 20 03:10:23 2001
2060 From: Georges at Berscheid.lu (Georges Berscheid)
2061 Date: Sat Oct 23 23:09:11 2004
2062 Subject: AW: [IRCServices Coding] Services 5.0 alpha 8 released
2063 In-Reply-To: <3c2175d6.46663@achurch.org>
2064 Message-ID: <EMEAJDMIHJFMOHONHAEDOEMJCDAA.Georges@Berscheid.lu>
2065
2066 Hi,
2067
2068 I just installed alpha8 and tried the new /operserv rehash function. But
2069 unfortunately it segfaults every time.
2070 gdb says:
2071
2072 #0 chunk_free (ar_ptr=0x464c457f, p=0x4007b9f8) at malloc.c:3049
2073 #1 0x40076fba in __libc_free (mem=0x4007ba00) at malloc.c:3023
2074 #2 0x804e84c in read_config_file (modulename=0x812e888 "statserv/main",
2075 directives=0x4018444c) at conffile.c:380
2076 #3 0x804ecbc in configure (modulename=0x812e888 "statserv/main",
2077 directives=0x4018444c, action=1) at conffile.c:523
2078 #4 0x80536b5 in reconfigure_modules () at modules.c:507
2079 #5 0x80500aa in reconfigure () at init.c:802
2080 #6 0x40134445 in do_rehash (u=0x8132128) at main.c:1071
2081 #7 0x804dcaa in run_cmd (service=0x8129f40 "OperServ", u=0x8132128,
2082 id=0x812aec0, cmd=0xbffff759 "rehash") at commands.c:175
2083 #8 0x40132999 in operserv (source=0xbffff96c "Peiter", target=0xbffff734
2084 "operserv", buf=0xbffff759 "rehash") at main.c:256
2085 #9 0x80538bd in call_callback_5 (module=0x0, id=25, arg1=0xbffff96c,
2086 arg2=0xbffff734, arg3=0xbffff759, arg4=0x0, arg5=0x0)
2087 at modules.c:612
2088 #10 0x8051d35 in m_privmsg (source=0xbffff96c "Peiter", ac=2, av=0x8132050)
2089 at messages.c:169
2090 #11 0x8053e31 in process () at process.c:131
2091 #12 0x8051581 in readline_callback (s=0x812f298, param_unused=0x3d) at
2092 main.c:158
2093 #13 0x805511f in check_sockets () at sockets.c:364
2094 #14 0x805180d in main (ac=1, av=0xbffffb64, envp=0xbffffb6c) at main.c:260
2095
2096 Greetings
2097
2098 Georges
2099
2100 -----Ursprungliche Nachricht-----
2101 Von: ircservices-coding-admin@ircservices.za.net
2102 [mailto:ircservices-coding-admin@ircservices.za.net]Im Auftrag von Andrew
2103 Church
2104 Gesendet: Donnerstag, 20. Dezember 2001 06:22
2105 An: ircservices-coding@ircservices.za.net
2106 Betreff: [IRCServices Coding] Services 5.0 alpha 8 released
2107
2108
2109 I've put up a new alpha tarball, alpha 8; it can be downloaded from
2110 the same place as the last one (http://achurch.org/services/5.0-alpha/).
2111 The crashing and infinite loop bugs reported before should be fixed, and
2112 rehashing has now been added. The change log is as follows:
2113
2114 2001/12/20 a8 SIGHUP now re-reads the configuration files instead of
2115 restarting.
2116 2001/12/20 SIGUSR2 no longer opens log file if it was closed before.
2117 2001/12/20 Added reconfiguration support for modules.
2118 2001/12/20 Renamed AkillReason config directive to AutokillReason.
2119 2001/12/19 Fixed crash when unloading modules on exit.
2120 2001/12/17 Fixed infinite loop on signal. Reported by Georges
2121 Berscheid <Georges@Berscheid.lu>
2122 2001/12/14 Fixed various problems caused by signal timing.
2123 2001/12/14 Fixed compile error on FreeBSD. Reported by Ben Goldstein
2124 <beng@nc.rr.com>
2125
2126 --Andrew Church
2127 achurch@achurch.org
2128 http://achurch.org/
2129 ------------------------------------------------------------------
2130 To unsubscribe or change your subscription options, visit:
2131 http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2132
2133
2134 From achurch at achurch.org Fri Dec 21 17:07:27 2001
2135 From: achurch at achurch.org (Andrew Church)
2136 Date: Sat Oct 23 23:09:11 2004
2137 Subject: AW: [IRCServices Coding] Services 5.0 alpha 8 released
2138 Message-ID: <3c22edd9.01433@achurch.org>
2139
2140 >Hi,
2141 >
2142 >I just installed alpha8 and tried the new /operserv rehash function. But
2143 >unfortunately it segfaults every time.
2144
2145 Can you send me a copy of your services.conf and modules.conf?
2146
2147 --Andrew Church
2148 achurch@achurch.org
2149 http://achurch.org/
2150
2151 >gdb says:
2152 >
2153 >#0 chunk_free (ar_ptr=0x464c457f, p=0x4007b9f8) at malloc.c:3049
2154 >#1 0x40076fba in __libc_free (mem=0x4007ba00) at malloc.c:3023
2155 >#2 0x804e84c in read_config_file (modulename=0x812e888 "statserv/main",
2156 >directives=0x4018444c) at conffile.c:380
2157 >#3 0x804ecbc in configure (modulename=0x812e888 "statserv/main",
2158 >directives=0x4018444c, action=1) at conffile.c:523
2159 >#4 0x80536b5 in reconfigure_modules () at modules.c:507
2160 >#5 0x80500aa in reconfigure () at init.c:802
2161 >#6 0x40134445 in do_rehash (u=0x8132128) at main.c:1071
2162 >#7 0x804dcaa in run_cmd (service=0x8129f40 "OperServ", u=0x8132128,
2163 >id=0x812aec0, cmd=0xbffff759 "rehash") at commands.c:175
2164 >#8 0x40132999 in operserv (source=0xbffff96c "Peiter", target=0xbffff734
2165 >"operserv", buf=0xbffff759 "rehash") at main.c:256
2166 >#9 0x80538bd in call_callback_5 (module=0x0, id=25, arg1=0xbffff96c,
2167 >arg2=0xbffff734, arg3=0xbffff759, arg4=0x0, arg5=0x0)
2168 > at modules.c:612
2169 >#10 0x8051d35 in m_privmsg (source=0xbffff96c "Peiter", ac=2, av=0x8132050)
2170 >at messages.c:169
2171 >#11 0x8053e31 in process () at process.c:131
2172 >#12 0x8051581 in readline_callback (s=0x812f298, param_unused=0x3d) at
2173 >main.c:158
2174 >#13 0x805511f in check_sockets () at sockets.c:364
2175 >#14 0x805180d in main (ac=1, av=0xbffffb64, envp=0xbffffb6c) at main.c:260
2176 >
2177 >Greetings
2178 >
2179 >Georges
2180 >
2181 >-----Ursprungliche Nachricht-----
2182 >Von: ircservices-coding-admin@ircservices.za.net
2183 >[mailto:ircservices-coding-admin@ircservices.za.net]Im Auftrag von Andrew
2184 >Church
2185 >Gesendet: Donnerstag, 20. Dezember 2001 06:22
2186 >An: ircservices-coding@ircservices.za.net
2187 >Betreff: [IRCServices Coding] Services 5.0 alpha 8 released
2188 >
2189 >
2190 > I've put up a new alpha tarball, alpha 8; it can be downloaded from
2191 >the same place as the last one (http://achurch.org/services/5.0-alpha/).
2192 >The crashing and infinite loop bugs reported before should be fixed, and
2193 >rehashing has now been added. The change log is as follows:
2194 >
2195 >2001/12/20 a8 SIGHUP now re-reads the configuration files instead of
2196 > restarting.
2197 >2001/12/20 SIGUSR2 no longer opens log file if it was closed before.
2198 >2001/12/20 Added reconfiguration support for modules.
2199 >2001/12/20 Renamed AkillReason config directive to AutokillReason.
2200 >2001/12/19 Fixed crash when unloading modules on exit.
2201 >2001/12/17 Fixed infinite loop on signal. Reported by Georges
2202 > Berscheid <Georges@Berscheid.lu>
2203 >2001/12/14 Fixed various problems caused by signal timing.
2204 >2001/12/14 Fixed compile error on FreeBSD. Reported by Ben Goldstein
2205 > <beng@nc.rr.com>
2206 >
2207 > --Andrew Church
2208 > achurch@achurch.org
2209 > http://achurch.org/
2210 >------------------------------------------------------------------
2211 >To unsubscribe or change your subscription options, visit:
2212 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2213 >
2214 >------------------------------------------------------------------
2215 >To unsubscribe or change your subscription options, visit:
2216 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2217
2218 From achurch at achurch.org Sat Dec 22 00:40:23 2001
2219 From: achurch at achurch.org (Andrew Church)
2220 Date: Sat Oct 23 23:09:11 2004
2221 Subject: [IRCServices Coding] svcs5
2222 Message-ID: <3c235838.11277@achurch.org>
2223
2224 >this may try to free something that is not malloced (if i get this right)
2225 >when it is called from makechan() (free(NULL) works under glibc, but i do
2226 >n't
2227 >know how portable/standard it is)
2228
2229 I'm pretty sure that's standard, and if it turns out not to be I'll
2230 just write my own free() because the rest of the code assumes it works
2231 that way.
2232
2233 >finaly in chanserv/access-levels.c, in do_levels():
2234 [snip]
2235 >the marked line is where i get the coredump...
2236 >it doesn't make any sense..
2237 >if ci->levels is NULL, then reset_levels is not called...
2238 >so it remains NULL and then ci->levels[] is used
2239
2240 The test on ci->levels was backwards in sense. Fixed, thanks.
2241
2242 --Andrew Church
2243 achurch@achurch.org
2244 http://achurch.org/
2245
2246 From griever at t2n.org Fri Dec 21 11:51:00 2001
2247 From: griever at t2n.org (Finny Merrill)
2248 Date: Sat Oct 23 23:09:11 2004
2249 Subject: [IRCServices Coding] svcs5
2250 In-Reply-To: <3c235838.11277@achurch.org>
2251 Message-ID: <Pine.LNX.4.33.0112211350500.20852-100000@linux.ircd-net.org>
2252
2253 On Sat, 22 Dec 2001, Andrew Church wrote:
2254
2255 > >this may try to free something that is not malloced (if i get this right)
2256 > >when it is called from makechan() (free(NULL) works under glibc, but i do
2257 > >n't
2258 > >know how portable/standard it is)
2259 >
2260 > I'm pretty sure that's standard, and if it turns out not to be I'll
2261 > just write my own free() because the rest of the code assumes it works
2262 > that way.
2263
2264 ISO C guarantees free(NULL) is safe
2265 >
2266 > >finaly in chanserv/access-levels.c, in do_levels():
2267 > [snip]
2268 > >the marked line is where i get the coredump...
2269 > >it doesn't make any sense..
2270 > >if ci->levels is NULL, then reset_levels is not called...
2271 > >so it remains NULL and then ci->levels[] is used
2272 >
2273 > The test on ci->levels was backwards in sense. Fixed, thanks.
2274 >
2275 > --Andrew Church
2276 > achurch@achurch.org
2277 > http://achurch.org/
2278 > ------------------------------------------------------------------
2279 > To unsubscribe or change your subscription options, visit:
2280 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2281 >
2282
2283
2284 From v13 at priest.com Sat Dec 22 10:42:29 2001
2285 From: v13 at priest.com (v13@priest.com)
2286 Date: Sat Oct 23 23:09:11 2004
2287 Subject: [IRCServices Coding] svc5 exception move
2288 Message-ID: <200112221842.UAA04340@ppp0.the.forthnet.gr>
2289
2290 in operserv/sessions.c, do_exception_move():
2291
2292 char *n1str = strtok(NULL, " "); /* From index */
2293 char *n2str = strtok(NULL, " "); /* To index */
2294 int n1, n2;
2295
2296 if (!n2str) {
2297 syntax_error(s_OperServ, u, "EXCEPTION", OPER_EXCEPTION_MOVE_SYNTAX);
2298 return;
2299 }
2300 n1 = atoi(n1str) - 1;
2301 n2 = atoi(n2str) - 1;
2302
2303 >>> if (n1 == n2 || n1 <= 0 || n2 <= 0) { <<< HERE <<<<<<<<<<<<<<<<<<<<
2304
2305 syntax_error(s_OperServ, u, "EXCEPTION", OPER_EXCEPTION_MOVE_SYNTAX);
2306 return;
2307 }
2308
2309 I believe the noted line should not have <=
2310 When trying to move exception #1 it fails and, when there are 3 exceptions:
2311
2312 /os exception move 4 3
2313
2314 gives:
2315
2316 -OperServ- Exception for *.hell.gr (#3) moved to number 2.
2317
2318 exception move also doesn't seem to work at all.
2319
2320 (tested under alpha7, but alpha8 hasn't change this)
2321
2322 <<V13>>
2323
2324 From griever at t2n.org Sat Dec 22 17:27:28 2001
2325 From: griever at t2n.org (Finny Merrill)
2326 Date: Sat Oct 23 23:09:11 2004
2327 Subject: [IRCServices Coding] unknown things
2328 Message-ID: <Pine.LNX.4.33.0112221926580.31115-100000@linux.ircd-net.org>
2329
2330 [Dec 22 19:25:41.487805 2001] debug: Loading module `operserv/main'
2331 [Dec 22 19:25:41.491171 2001] modules.conf:178: Unknown directive
2332 `LogMaxUsers'
2333 [Dec 22 19:25:41.491643 2001] modules.conf:220: Unknown directive
2334 `WallGetpass'
2335 [Dec 22 19:25:41.491805 2001] modules.conf:227: Unknown directive
2336 `WallSetpass'
2337
2338 have those been moved?
2339
2340
2341 From mark at mhetherington.demon.co.uk Sat Dec 22 17:37:15 2001
2342 From: mark at mhetherington.demon.co.uk (Mark Hetherington)
2343 Date: Sat Oct 23 23:09:11 2004
2344 Subject: [IRCServices Coding] unknown things
2345 In-Reply-To: <Pine.LNX.4.33.0112221926580.31115-100000@linux.ircd-net.org>
2346 Message-ID: <NFBBKFAFGLNBHGEDBKDMCECECIAA.mark@mhetherington.demon.co.uk>
2347
2348 I mentioned this in another email. There are checked in the wrong place
2349 (module load which does no know what they are rather than services load
2350 which does know). I meant to move the directives from one to the other but
2351 have not tried it yet.
2352
2353 Mark.
2354
2355 > -----Original Message-----
2356 > From: ircservices-coding-admin@ircservices.za.net
2357 > [mailto:ircservices-coding-admin@ircservices.za.net]On Behalf Of Finny
2358 > Merrill
2359 > Sent: 23 December 2001 01:27
2360 > To: ircservices-coding@ircservices.za.net
2361 > Subject: [IRCServices Coding] unknown things
2362 >
2363 >
2364 > [Dec 22 19:25:41.487805 2001] debug: Loading module `operserv/main'
2365 > [Dec 22 19:25:41.491171 2001] modules.conf:178: Unknown directive
2366 > `LogMaxUsers'
2367 > [Dec 22 19:25:41.491643 2001] modules.conf:220: Unknown directive
2368 > `WallGetpass'
2369 > [Dec 22 19:25:41.491805 2001] modules.conf:227: Unknown directive
2370 > `WallSetpass'
2371 >
2372 > have those been moved?
2373 >
2374 > ------------------------------------------------------------------
2375 > To unsubscribe or change your subscription options, visit:
2376 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2377 >
2378
2379
2380 From achurch at achurch.org Sun Dec 23 16:14:05 2001
2381 From: achurch at achurch.org (Andrew Church)
2382 Date: Sat Oct 23 23:09:11 2004
2383 Subject: [IRCServices Coding] unknown things
2384 Message-ID: <3c258453.02003@achurch.org>
2385
2386 >[Dec 22 19:25:41.487805 2001] debug: Loading module `operserv/main'
2387 >[Dec 22 19:25:41.491171 2001] modules.conf:178: Unknown directive
2388 >`LogMaxUsers'
2389 >[Dec 22 19:25:41.491643 2001] modules.conf:220: Unknown directive
2390 >`WallGetpass'
2391 >[Dec 22 19:25:41.491805 2001] modules.conf:227: Unknown directive
2392 >`WallSetpass'
2393
2394 I've been meaning to do something about these for a LONG time, but
2395 there's been too much else going on. I'll take care of them eventually.
2396
2397 --Andrew Church
2398 achurch@achurch.org
2399 http://achurch.org/
2400
2401 From admin at insiderZ.de Sun Dec 23 09:06:15 2001
2402 From: admin at insiderZ.de (Christian 'HERZ' Makowski)
2403 Date: Sat Oct 23 23:09:11 2004
2404 Subject: [IRCServices Coding] Hello !
2405 Message-ID: <HHEJLNAKMCNBHNPFAEAMKEOACCAA.admin@insiderZ.de>
2406
2407 Hello Together,
2408
2409 I am new here and i have a Question / Compilerproblem.
2410 We work at the Momentan in our Network with Epona Services
2411 but we have many problems with stability.
2412 We want to Change to Ircservices, Coder from Unrealircd
2413 says , this is the best for Unreal.
2414
2415 I just downloaded ircservices-5.0a8.tar.gz because we want to support
2416 ircservices with Unreal3.2 / ipv6 but i have the first error:
2417
2418 I have tried make & gmake , what the problem here ?!?
2419 ircservices4.5.35 compiles fine.
2420
2421 [insiderz@ns ircservices-5.0a8]$ gmake
2422 sh version.sh
2423 gcc -DCLEAN_COMPILE -O2 -Wall -Wmissing-prototypes -g -c version.c -o
2424 version.o
2425 gmake[1]: Entering directory `/home/insiderz/ircservices-5.0a8/modules'
2426 gmake[2]: Entering directory
2427 `/home/insiderz/ircservices-5.0a8/modules/chanserv'
2428 gmake[2]: *** No rule to make target `main.so', needed by `all-dynamic'.
2429 Stop.
2430 gmake[2]: Leaving directory
2431 `/home/insiderz/ircservices-5.0a8/modules/chanserv'
2432 gmake[1]: *** [all-dynamic] Error 2
2433 gmake[1]: Leaving directory `/home/insiderz/ircservices-5.0a8/modules'
2434 gmake: *** [modules] Error 2
2435
2436 Thanks in advance for help and merry merry Xmas to All !
2437
2438 Christian -HERZ- Makowski
2439 Networkadmin InsiderZ
2440
2441
2442
2443 From jbinder at kgazd.bme.hu Sun Dec 23 09:51:52 2001
2444 From: jbinder at kgazd.bme.hu (John Binder)
2445 Date: Sat Oct 23 23:09:11 2004
2446 Subject: [IRCServices Coding] Hello !
2447 References: <HHEJLNAKMCNBHNPFAEAMKEOACCAA.admin@insiderZ.de>
2448 Message-ID: <000701c18bda$80e61be0$0d624298@kgazd.bme.hu>
2449
2450 Hi,
2451
2452 > I have tried make & gmake , what the problem here ?!?
2453 > ircservices4.5.35 compiles fine.
2454 >
2455 > [insiderz@ns ircservices-5.0a8]$ gmake
2456 > sh version.sh
2457 > gcc -DCLEAN_COMPILE -O2 -Wall -Wmissing-prototypes -g -c version.c -o
2458 > version.o
2459 > gmake[1]: Entering directory `/home/insiderz/ircservices-5.0a8/modules'
2460 > gmake[2]: Entering directory
2461 > `/home/insiderz/ircservices-5.0a8/modules/chanserv'
2462 > gmake[2]: *** No rule to make target `main.so', needed by `all-dynamic'.
2463 > Stop.
2464 > gmake[2]: Leaving directory
2465 > `/home/insiderz/ircservices-5.0a8/modules/chanserv'
2466 > gmake[1]: *** [all-dynamic] Error 2
2467 > gmake[1]: Leaving directory `/home/insiderz/ircservices-5.0a8/modules'
2468 > gmake: *** [modules] Error 2
2469
2470 IMHO configure was forgotten, try to ./configure before it
2471
2472 John Binder
2473
2474 > Thanks in advance for help and merry merry Xmas to All !
2475 >
2476 > Christian -HERZ- Makowski
2477 > Networkadmin InsiderZ
2478 >
2479 >
2480 > ------------------------------------------------------------------
2481 > To unsubscribe or change your subscription options, visit:
2482 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2483 >
2484 >
2485
2486
2487 From achurch at achurch.org Mon Dec 24 10:56:31 2001
2488 From: achurch at achurch.org (Andrew Church)
2489 Date: Sat Oct 23 23:09:11 2004
2490 Subject: [IRCServices Coding] Hello !
2491 Message-ID: <3c268d42.02117@achurch.org>
2492
2493 >Hello Together,
2494 >
2495 >I am new here and i have a Question / Compilerproblem.
2496 >We work at the Momentan in our Network with Epona Services
2497 >but we have many problems with stability.
2498 >We want to Change to Ircservices, Coder from Unrealircd
2499 >says , this is the best for Unreal.
2500 >
2501 >I just downloaded ircservices-5.0a8.tar.gz because we want to support
2502 >ircservices with Unreal3.2 / ipv6 but i have the first error:
2503
2504 DO NOT use the alpha version of Services on a live network! Alpha
2505 versions are for testing ONLY. DO NOT contact either me or the mailing
2506 lists with questions about an alpha version unless you intend to help test
2507 and find bugs yourself. If you ignore this warning, I will either ban you
2508 from downloading the alpha version, or remove the alpha version from public
2509 access entirely and publicly give your name and E-mail address as the
2510 reason the alpha was removed.
2511
2512 --Andrew Church
2513 achurch@achurch.org
2514 http://achurch.org/
2515
2516 >I have tried make & gmake , what the problem here ?!?
2517 >ircservices4.5.35 compiles fine.
2518 >
2519 >[insiderz@ns ircservices-5.0a8]$ gmake
2520 >sh version.sh
2521 >gcc -DCLEAN_COMPILE -O2 -Wall -Wmissing-prototypes -g -c version.c -o
2522 >version.o
2523 >gmake[1]: Entering directory `/home/insiderz/ircservices-5.0a8/modules'
2524 >gmake[2]: Entering directory
2525 >`/home/insiderz/ircservices-5.0a8/modules/chanserv'
2526 >gmake[2]: *** No rule to make target `main.so', needed by `all-dynamic'.
2527 >Stop.
2528 >gmake[2]: Leaving directory
2529 >`/home/insiderz/ircservices-5.0a8/modules/chanserv'
2530 >gmake[1]: *** [all-dynamic] Error 2
2531 >gmake[1]: Leaving directory `/home/insiderz/ircservices-5.0a8/modules'
2532 >gmake: *** [modules] Error 2
2533 >
2534 >Thanks in advance for help and merry merry Xmas to All !
2535 >
2536 >Christian -HERZ- Makowski
2537 >Networkadmin InsiderZ
2538 >
2539 >
2540 >------------------------------------------------------------------
2541 >To unsubscribe or change your subscription options, visit:
2542 >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2543
2544 From casper at wbss.com Sun Dec 23 20:03:37 2001
2545 From: casper at wbss.com (CaSPeR)
2546 Date: Sat Oct 23 23:09:11 2004
2547 Subject: [IRCServices Coding] raw commands
2548 Message-ID: <017601c18c2f$f7c503c0$ace4fea9@casper>
2549
2550 just wanted to know if there is a list of commands and their discriptions somewhere?
2551 also want to know what command to use to bring in a fake user.
2552
2553
2554 -------------- next part --------------
2555 An HTML attachment was scrubbed...
2556 URL: http://lists.ircservices.za.net/pipermail/ircservices-coding/attachments/20011223/56c54ad1/attachment.html
2557 From smkelly at zombie.org Sun Dec 23 20:35:49 2001
2558 From: smkelly at zombie.org (Sean Kelly)
2559 Date: Sat Oct 23 23:09:11 2004
2560 Subject: [IRCServices Coding] raw commands
2561 In-Reply-To: <017601c18c2f$f7c503c0$ace4fea9@casper>; from casper@wbss.com on Sun, Dec 23, 2001 at 11:03:37PM -0500
2562 References: <017601c18c2f$f7c503c0$ace4fea9@casper>
2563 Message-ID: <20011223223549.A2427@edgemaster.zombie.org>
2564
2565 On Sun, Dec 23, 2001 at 11:03:37PM -0500, CaSPeR wrote:
2566 > just wanted to know if there is a list of commands and their discriptions somewhere?
2567 > also want to know what command to use to bring in a fake user.
2568
2569 RAW merely passes the string on to services' uplink server. Any valid IRC
2570 command, as issued by a server, is valid. I suggest you read RFC1459 and
2571 also become familiar with the workings of ircd before you play with RAW.
2572 It isn't a toy.
2573
2574 --
2575 Sean Kelly | PGP KeyID: 77042C7B
2576 smkelly@zombie.org | http://www.zombie.org
2577
2578 For PGP key, send e-mail with subject "send pgp key"
2579 -------------- next part --------------
2580 A non-text attachment was scrubbed...
2581 Name: not available
2582 Type: application/pgp-signature
2583 Size: 187 bytes
2584 Desc: not available
2585 Url : http://lists.ircservices.za.net/pipermail/ircservices-coding/attachments/20011223/3486e5a6/attachment.pgp
2586 From chromi at cyberspace.org Sun Dec 23 20:22:16 2001
2587 From: chromi at cyberspace.org (Jonathan Morton)
2588 Date: Sat Oct 23 23:09:11 2004
2589 Subject: [IRCServices Coding] raw commands
2590 In-Reply-To: <017601c18c2f$f7c503c0$ace4fea9@casper>
2591 References: <017601c18c2f$f7c503c0$ace4fea9@casper>
2592 Message-ID: <a05101002b84c5dbdea5f@[10.0.1.2]>
2593
2594 >just wanted to know if there is a list of commands and their
2595 >discriptions somewhere?
2596 >also want to know what command to use to bring in a fake user.
2597
2598 Consult your IRCd's documentation. Commands available via RAW are
2599 not under Services' control and can cause major problems.
2600
2601 --
2602 --------------------------------------------------------------
2603 from: Jonathan "Chromatix" Morton
2604 mail: chromi@cyberspace.org (not for attachments)
2605 website: http://www.chromatix.uklinux.net/vnc/
2606 geekcode: GCS$/E dpu(!) s:- a20 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$
2607 V? PS PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r++ y+(*)
2608 tagline: The key to knowledge is not to rely on people to teach you it.
2609
2610 From achurch at achurch.org Mon Dec 24 22:21:35 2001
2611 From: achurch at achurch.org (Andrew Church)
2612 Date: Sat Oct 23 23:09:11 2004
2613 Subject: [IRCServices Coding] svc5 exception move
2614 Message-ID: <3c272c21.02247@achurch.org>
2615
2616 >When trying to move exception #1 it fails and, when there are 3 exception
2617 >s:
2618 >
2619 >/os exception move 4 3
2620 >
2621 >gives:
2622 >
2623 >-OperServ- Exception for *.hell.gr (#3) moved to number 2.
2624
2625 Thanks, fixed (the problem is the -1's, which shouldn't be there).
2626
2627 >exception move also doesn't seem to work at all.
2628
2629 That's because the code that actually does it (in database/ver4.c)
2630 is still broken (#ifdef'd out) and I haven't had a chance to fix it yet.
2631
2632 --Andrew Church
2633 achurch@achurch.org
2634 http://achurch.org/
2635
2636 From lamego at ptlink.net Tue Dec 25 12:38:28 2001
2637 From: lamego at ptlink.net (lamego@ptlink.net)
2638 Date: Sat Oct 23 23:09:11 2004
2639 Subject: [IRCServices Coding] Hello !
2640 Message-ID: <20011225124018.3C86B1742B@snow.fingers.co.za>
2641
2642 Is the Alpha distributed with some kind of "not public" license ?
2643 I do know the term "use it at your own risk", but this "forbidden to use on a live network" is a new one.
2644
2645 Just a thought,
2646 Joao Pinto
2647
2648 Andrew Church <achurch@achurch.org> wrote :
2649
2650 > >Hello Together,
2651 > >
2652 > >I am new here and i have a Question / Compilerproblem.
2653 > >We work at the Momentan in our Network with Epona Services
2654 > >but we have many problems with stability.
2655 > >We want to Change to Ircservices, Coder from Unrealircd
2656 > >says , this is the best for Unreal.
2657 > >
2658 > >I just downloaded ircservices-5.0a8.tar.gz because we want to support
2659 > >ircservices with Unreal3.2 / ipv6 but i have the first error:
2660 >
2661 > DO NOT use the alpha version of Services on a live network! Alpha
2662 > versions are for testing ONLY. DO NOT contact either me or the mailing
2663 > lists with questions about an alpha version unless you intend to help test
2664 > and find bugs yourself. If you ignore this warning, I will either ban you
2665 > from downloading the alpha version, or remove the alpha version from public
2666 > access entirely and publicly give your name and E-mail address as the
2667 > reason the alpha was removed.
2668 >
2669 > --Andrew Church
2670 > achurch@achurch.org
2671 > http://achurch.org/
2672 >
2673 > >I have tried make & gmake , what the problem here ?!?
2674 > >ircservices4.5.35 compiles fine.
2675 > >
2676 > >[insiderz@ns ircservices-5.0a8]$ gmake
2677 > >sh version.sh
2678 > >gcc -DCLEAN_COMPILE -O2 -Wall -Wmissing-prototypes -g -c version.c -o
2679 > >version.o
2680 > >gmake[1]: Entering directory `/home/insiderz/ircservices-5.0a8/modules'
2681 > >gmake[2]: Entering directory
2682 > >`/home/insiderz/ircservices-5.0a8/modules/chanserv'
2683 > >gmake[2]: *** No rule to make target `main.so', needed by `all-dynamic'.
2684 > >Stop.
2685 > >gmake[2]: Leaving directory
2686 > >`/home/insiderz/ircservices-5.0a8/modules/chanserv'
2687 > >gmake[1]: *** [all-dynamic] Error 2
2688 > >gmake[1]: Leaving directory `/home/insiderz/ircservices-5.0a8/modules'
2689 > >gmake: *** [modules] Error 2
2690 > >
2691 > >Thanks in advance for help and merry merry Xmas to All !
2692 > >
2693 > >Christian -HERZ- Makowski
2694 > >Networkadmin InsiderZ
2695 > >
2696 > >
2697 > >------------------------------------------------------------------
2698 > >To unsubscribe or change your subscription options, visit:
2699 > >http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2700 > ------------------------------------------------------------------
2701 > To unsubscribe or change your subscription options, visit:
2702 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
2703
2704
2705
2706
2707
2708
2709
2710
2711 From christian.makowski at t-online.de Tue Dec 25 04:44:51 2001
2712 From: christian.makowski at t-online.de (Christian Makowski)
2713 Date: Sat Oct 23 23:09:11 2004
2714 Subject: [IRCServices Coding] Hello !
2715 Message-ID: <1009284150.3c287436d2282@webmail.t-online.de>
2716
2717 lamego@ptlink.net schrieb:
2718 > Is the Alpha distributed with some kind of "not public"
2719 > license ?
2720 > I do know the term "use it at your own risk", but this
2721 > "forbidden to use on a live network" is a new one.
2722 >
2723 > Just a thought,
2724 > Joao Pinto
2725 >
2726
2727 So i think too
2728 Then i ask me, why a Alpha is Released to download from a Mainsite
2729 with a BIG Advertising link.
2730 It would be better on a CVS Server for internal Use.
2731
2732 From achurch at achurch.org Tue Dec 25 22:11:53 2001
2733 From: achurch at achurch.org (Andrew Church)
2734 Date: Sat Oct 23 23:09:11 2004
2735 Subject: [IRCServices Coding] Hello !
2736 Message-ID: <3c287df1.12075@achurch.org>
2737
2738 >> Is the Alpha distributed with some kind of "not public"
2739 >> license ?
2740 >> I do know the term "use it at your own risk", but this
2741 >> "forbidden to use on a live network" is a new one.
2742
2743 The license is the GPL, the same as it has always been, but the only
2744 reason I'm making it publicly available at all while it's still in alpha is
2745 to get help from _experienced_ users in fixing the remaining major problems
2746 before I take it to beta status and do a full-fledged release. (From the
2747 response I've seen so far I'm half inclined to take it down again.)
2748
2749 >So i think too
2750 >Then i ask me, why a Alpha is Released to download from a Mainsite
2751 >with a BIG Advertising link.
2752
2753 Because that's the only way to let people know who might want to help
2754 with an alpha test. You might also note that there's a fairly large and
2755 obvious warning--on two consecutive pages, no less!--before you can
2756 actually download the alpha version.
2757
2758 Please remember that I have NO obligation whatsoever to provide any
2759 sort of "service" to you or even to publish IRC Services at all. The only
2760 thing I get out of Services is appreciation from users, which includes the
2761 recognition that I do this on my own free time without any sort of
2762 compensation other than the thanks of users for creating it. (Frankly, I
2763 would probably be a much happier person if I hadn't devoted many thousands
2764 of hours over six years to Services, but oh well.) Thus, I do NOT
2765 appreciate people ignoring warnings I put up explicitly to prevent these
2766 kinds of questions/complaints.
2767
2768 Please try to act more responsibly in the future. (That applies to
2769 everyone.)
2770
2771 --Andrew Church
2772 achurch@achurch.org
2773 http://achurch.org/
2774
2775 From achurch at achurch.org Tue Dec 25 22:24:20 2001
2776 From: achurch at achurch.org (Andrew Church)
2777 Date: Sat Oct 23 23:09:11 2004
2778 Subject: [IRCServices Coding] Services 5.0 alpha 9 released
2779 Message-ID: <3c2880d1.12116@achurch.org>
2780
2781 Alpha 9 is up in the usual place; this is mainly a release to get
2782 accumulated changes uploaded before I leave on vacation (tomorrow). I'll
2783 be back late on 1 January, if things go according to plan, so mail will go
2784 unanswered until then.
2785
2786 Also, happy holidays to all. This is meant seriously, for those who
2787 may be unsure: I'm not the fascist bastard I may seem in mail sometimes--
2788 I just play one on the Internet, so to speak. (: I don't intend to let my
2789 holiday season get overwhelmed by this or any other minor matter, and I
2790 hope none of you do either.
2791
2792 --Andrew Church
2793 achurch@achurch.org
2794 http://achurch.org/
2795
2796 From rg at tcslon.com Tue Dec 25 09:53:27 2001
2797 From: rg at tcslon.com (Russell Garrett)
2798 Date: Sat Oct 23 23:09:11 2004
2799 Subject: [IRCServices Coding] Services 5.0 alpha 9 released
2800 In-Reply-To: <3c2880d1.12116@achurch.org>
2801 Message-ID: <NDBBLDHKLKMANPGMACIGGEHOCNAA.rg@tcslon.com>
2802
2803 OK, a few comments from me. I haven't managed to crash it yet, which
2804 is always a good sign ;).
2805
2806 I was playing with the httpd/dbaccess/xml-export module, and IE6's
2807 usually annoying XML syntax checking pointed something out. Where
2808 there's an ampersand in a last_quit field, it replaces it with
2809 "&amp-" as opposed to the correct "&amp;", which causes IE to choke
2810 :). The context is as follows:
2811
2812 <nickinfo>
2813 <nick>[nick]</nick>
2814 ...
2815 <last_quit>Quit: Peace &amp- Protection 4.06</last_quit>
2816 ...
2817 <nickinfo>
2818
2819 Also, it seems to pad every <supass> or <pass> field with lots of
2820 "&#0;" null chars:
2821 <supass>mysupass&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&
2822 #0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;</supass>
2823 <pass>&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0
2824 ;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;</pa
2825 ss>
2826
2827 Note: I am working with a copy of my live v4 database.
2828
2829 Also, on my #chat channel on the v4 installation, Voice is set to
2830 level 0, so everyone is voiced when they join. However, when my AOPs
2831 join #chat on the v5 net, they get set +hq, and normal users don't
2832 get anything, which is rather odd (possibly to do with me not running
2833 the xOP module or something...). I'm continuing to investigate this
2834 one.
2835
2836
2837 Cheers,
2838
2839
2840 Russ Garrett (russ@garrett.co.uk)
2841
2842
2843
2844 From achurch at achurch.org Wed Dec 26 03:08:51 2001
2845 From: achurch at achurch.org (Andrew Church)
2846 Date: Sat Oct 23 23:09:11 2004
2847 Subject: [IRCServices Coding] Services 5.0 alpha 9 released
2848 Message-ID: <3c28c329.41041@achurch.org>
2849
2850 >I was playing with the httpd/dbaccess/xml-export module, and IE6's
2851 >usually annoying XML syntax checking pointed something out. Where
2852 >there's an ampersand in a last_quit field, it replaces it with
2853 >"&amp-" as opposed to the correct "&amp;", which causes IE to choke
2854 >:). The context is as follows:
2855 >
2856 ><nickinfo>
2857 ><nick>[nick]</nick>
2858 >...
2859 ><last_quit>Quit: Peace &amp- Protection 4.06</last_quit>
2860 >...
2861 ><nickinfo>
2862
2863 Okay, that was a stupid one... an off-by-one error in a memcpy() size
2864 argument. Fixed, thanks; the patch is as follows:
2865
2866 ---------------------------------------------------------------------------
2867 --- modules/misc/xml-export.c 19 Dec 2001 16:35:13 -0000 2.2
2868 +++ modules/misc/xml-export.c 25 Dec 2001 18:12:42 -0000 2.3
2869 @@ -94,7 +94,7 @@
2870 d += 4;
2871 break;
2872 case '&':
2873 - memcpy(d, "&amp;", 4);
2874 + memcpy(d, "&amp;", 5);
2875 d += 5;
2876 break;
2877 default:
2878 ---------------------------------------------------------------------------
2879
2880 >Also, it seems to pad every <supass> or <pass> field with lots of
2881 >"&#0;" null chars:
2882 ><supass>mysupass&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&
2883 >#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;</supass>
2884 ><pass>&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0
2885 >;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;</pa
2886 >ss>
2887
2888 This is because the export-xml module can't know that the encryption
2889 module (if one is in use) uses a null character as a string terminator.
2890 In point of fact, the MD5 encryption module stores the passwords as 16 raw
2891 bytes rather than 32 hex characters, so null characters can very possibly
2892 appear in the middle of a password. Thus, passwords are stored as raw
2893 buffers of data (properly XML-encoded).
2894
2895 >Also, on my #chat channel on the v4 installation, Voice is set to
2896 >level 0, so everyone is voiced when they join. However, when my AOPs
2897 >join #chat on the v5 net, they get set +hq, and normal users don't
2898 >get anything, which is rather odd (possibly to do with me not running
2899 >the xOP module or something...). I'm continuing to investigate this
2900 >one.
2901
2902 You should probably look into what check_access_cumode()
2903 (modules/chanserv/access.c) is doing; that part of the code has been
2904 thoroughly redone and gotten almost no testing. I'm not sure what would
2905 cause the autovoice level to get set to 0.
2906
2907 --Andrew Church
2908 achurch@achurch.org
2909 http://achurch.org/
2910
2911 From rg at tcslon.com Tue Dec 25 11:14:58 2001
2912 From: rg at tcslon.com (Russell Garrett)
2913 Date: Sat Oct 23 23:09:11 2004
2914 Subject: [IRCServices Coding] Services 5.0 alpha 9 released
2915 In-Reply-To: <3c28c329.41041@achurch.org>
2916 Message-ID: <NDBBLDHKLKMANPGMACIGMEHPCNAA.rg@tcslon.com>
2917
2918 > Okay, that was a stupid one... an off-by-one error in
2919 > a memcpy() size
2920 > argument. Fixed, thanks; the patch is as follows:
2921
2922 Thanks
2923
2924 > ...
2925 > appear in the middle of a password. Thus, passwords are
2926 > stored as raw
2927 > buffers of data (properly XML-encoded).
2928
2929 Fair enough, just wondering what they were doing :)
2930
2931 > You should probably look into what check_access_cumode()
2932 > (modules/chanserv/access.c) is doing; that part of the
2933 > code has been
2934 > thoroughly redone and gotten almost no testing. I'm not
2935 > sure what would
2936 > cause the autovoice level to get set to 0.
2937
2938 Ahh, I wasn't very clear there - the autovoice level was set to 0 on
2939 the version 4 services by my chanops to make it easier to silence
2940 certain users :). On the v5 net, with both the xOP and Levels modules
2941 loaded, nothing happens to level 0 users, and users previously
2942 autoopped (levels 5+) are all set mode +hq (insofar as that there is
2943 more than one +q user in the room...).
2944
2945 Just a few more things that I've noticed:
2946
2947 - The news.db database (imported from version 4) corrupted rather
2948 easily the first time I sent services a SIGTERM. Now I get [Oper
2949 News - Jan 01 1970] (null).
2950
2951 - The /os rehash command doesn't seem to rehash very many
2952 configuration options. I could be wrong, but I don't think I've seen
2953 any of the modules.conf options updated using this command.
2954
2955 - httpd/auth-password doesn't seem to work at all for me:
2956 Module httpd/auth-password
2957 AuthName "PhaseNet Test IRC Services"
2958 Protect /debug "quack:quack"
2959 Protect /dbaccess "quack:quack"
2960 EndModule
2961
2962 No auth box is presented
2963
2964 - The httpd/dbaccess module is very useful for debugging
2965 access/levels problems such as the above, but it would be quite handy
2966 to have a http://serviceshost/dbaccess/chanserv/chan/levels page,
2967 showing the xOP levels sometimes.
2968
2969
2970
2971 That's about all for the moment ;),
2972
2973 Russ Garrett (russ@garrett.co.uk)
2974
2975
2976 From lamego at ptlink.net Tue Dec 25 20:46:30 2001
2977 From: lamego at ptlink.net (lamego@ptlink.net)
2978 Date: Sat Oct 23 23:09:12 2004
2979 Subject: [IRCServices Coding] Hello !
2980 Message-ID: <20011225204816.7C6DA17444@snow.fingers.co.za>
2981
2982 Andrew Church <achurch@achurch.org> wrote :
2983
2984 > >> Is the Alpha distributed with some kind of "not public"
2985 > >> license ?
2986 > >> I do know the term "use it at your own risk", but this
2987 > >> "forbidden to use on a live network" is a new one.
2988 >
2989 > The license is the GPL, the same as it has always been, but the only
2990 > reason I'm making it publicly available at all while it's still in alpha is
2991 > to get help from _experienced_ users in fixing the remaining major problems
2992 > before I take it to beta status and do a full-fledged release. (From the
2993 > response I've seen so far I'm half inclined to take it down again.)
2994 You are getting help from _experienced_ users however making it public you should be also prepared to get *NOT* help from general users.
2995 >
2996 > >So i think too
2997 > >Then i ask me, why a Alpha is Released to download from a Mainsite
2998 > >with a BIG Advertising link.
2999 >
3000 > Because that's the only way to let people know who might want to help
3001 > with an alpha test.
3002 The guy was trying to help, but first he just needed some help :P
3003 >You might also note that there's a fairly large and
3004 > obvious warning--on two consecutive pages, no less!--before you can
3005 > actually download the alpha version.
3006 One more reason that it is user's responsability so you should not be worried with someone running it on a live network.
3007 >
3008 > Please remember that I have NO obligation whatsoever to provide any
3009 > sort of "service" to you or even to publish IRC Services at all. The only
3010 > thing I get out of Services is appreciation from users, which includes the
3011 > recognition that I do this on my own free time without any sort of
3012 > compensation other than the thanks of users for creating it. (Frankly, I
3013 > would probably be a much happier person if I hadn't devoted many thousands
3014 > of hours over six years to Services, but oh well.) You and all the guys who work on linux, gcc, gmake etc most of the software you need to compile and run ircservices. I don't remember none of them forbidding their alpha from beeing tested on "live servers".
3015
3016 Thus, I do NOT
3017 > appreciate people ignoring warnings I put up explicitly to prevent these
3018 > kinds of questions/complaints.
3019 Sometimes the delete key is helpfull and not so stressing.
3020 >
3021 > Please try to act more responsibly in the future. (That applies to
3022 > everyone.)
3023 Doing it now, I hope :)
3024 >
3025 > --Andrew Church
3026 > achurch@achurch.org
3027 > http://achurch.org/
3028 > ------------------------------------------------------------------
3029 > To unsubscribe or change your subscription options, visit:
3030 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
3031
3032
3033
3034
3035
3036
3037
3038
3039 From rg at tcslon.com Tue Dec 25 13:11:22 2001
3040 From: rg at tcslon.com (Russell Garrett)
3041 Date: Sat Oct 23 23:09:12 2004
3042 Subject: [IRCServices Coding] More bugs... :)
3043 In-Reply-To: <3c2880d1.12116@achurch.org>
3044 Message-ID: <NDBBLDHKLKMANPGMACIGKEIACNAA.rg@tcslon.com>
3045
3046 Another small XML bug, courtesy of IE6's XML parser :)
3047
3048 Line 243 of modules/misc/xml-export.c is:
3049 writefunc(data, "\t<nickinfo>\n");
3050 and should be:
3051 writefunc(data, "\t</nickinfo>\n");
3052 with the forwardslash.
3053
3054 After that's changed the XML checks out fine in IE.
3055
3056 I spotted that repeated segfault-on-squit problem again, but couldn't
3057 repeat it, and coredumping wasn't on. I've turned it on, so I should
3058 be able to catch it next time :)
3059
3060 Cheers,
3061
3062 Russ Garrett (russ@garrett.co.uk)
3063
3064
3065 From ron885 at linuxfreemail.com Tue Dec 25 15:35:45 2001
3066 From: ron885 at linuxfreemail.com (Ron )
3067 Date: Sat Oct 23 23:09:12 2004
3068 Subject: [IRCServices Coding] A bug i think...
3069 Message-ID: <200112252335.fBPNZjb27708@superglide.netfx-2000.net>
3070
3071 I was playing with alpha8 last night, and discovered this and wasn't
3072 quite sure if it is whats supposed to happen. The session limit was
3073 set two 3 and i had one client loaded, Ron885, and the other one
3074 connecting, Ron885_...
3075
3076 [01:28:20] Global: OperServ - Ron885 added an SGLINE for ron (expires
3077 in 1 minute)
3078 [01:28:34] Connect: Ron885_ (ron885@ron.linux) on port 6667
3079 [01:28:34] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3080 (Invalid Real Name)
3081 [01:28:34] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3082 (Invalid Real Name))]
3083 [01:28:37] Connect: Ron885_ (ron885@ron.linux) on port 6667
3084 [01:28:37] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3085 (Invalid Real Name)
3086 [01:28:37] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3087 (Invalid Real Name))]
3088 [01:28:38] Connect: Ron885_ (ron885@ron.linux) on port 6667
3089 [01:28:38] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3090 (Session limit exceeded)
3091 [01:28:38] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3092 (Session limit exceeded))]
3093 [01:28:43] Connect: Ron885_ (ron885@ron.linux) on port 6667
3094 [01:28:43] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3095 (Session limit exceeded)
3096 [01:28:43] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3097 (Session limit exceeded))]
3098 [01:28:48] Connect: Ron885_ (ron885@ron.linux) on port 6667
3099 [01:28:48] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3100 (Session limit exceeded)
3101 [01:28:48] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3102 (Session limit exceeded))]
3103 [01:28:52] Connect: Ron885_ (ron885@ron.linux) on port 6667
3104 [01:28:52] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3105 (Session limit exceeded)
3106 [01:28:52] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3107 (Session limit exceeded))]
3108 [01:28:53] Connect: Ron885_ (ron885@ron.linux) on port 6667
3109 [01:28:53] GLINE: added for *@ron.linux on Mon Dec 24 20:28:53 2001 GMT
3110 (from OperServ to expire at Mon Dec 24 20:58:53 2001 GMT: Autokilled:
3111 Exceeding session limit)
3112 [01:28:53] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3113 (Session limit exceeded)
3114 [01:28:53] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3115 (Session limit exceeded))]
3116 [01:28:53] -1.axenet.org- *** You are banned from Axenet (Autokilled:
3117 Exceeding session limit)
3118 [01:28:53] Disconnect: Ron885 (ron885@ron.linux) [User has been banned
3119 from Axenet (Autokilled: Exceeding session limit)]
3120 [01:28:53] --- Closing Link: Ron885[ron.linux] (User has been banned
3121 from Axenet (Autokilled: Exceeding session limit))
3122 [01:28:53] --- Disconnected (Remote host closed socket).
3123
3124 it seems as if the session list gets messed up... because afterwards i
3125 had one client connected and did /os session view and it said 3 of 3
3126 when there was only one connected...
3127
3128 --
3129 Ron885
3130 TechAdmin @ irc.axenet.org
3131
3132 Get your own FREE E-mail address at http://www.linuxfreemail.com
3133 Linux FREE Mail is 100% FREE, 100% Linux, 100% better, and 100% yours!
3134
3135
3136
3137 From griever at t2n.org Tue Dec 25 16:43:52 2001
3138 From: griever at t2n.org (Finny Merrill)
3139 Date: Sat Oct 23 23:09:12 2004
3140 Subject: [IRCServices Coding] A bug i think...
3141 In-Reply-To: <200112252335.fBPNZjb27708@superglide.netfx-2000.net>
3142 Message-ID: <Pine.LNX.4.33.0112251843280.3861-100000@linux.ircd-net.org>
3143
3144 I noticed this too, I think it has something to do with +x
3145 On Tue, 25 Dec 2001, Ron wrote:
3146
3147 > I was playing with alpha8 last night, and discovered this and wasn't
3148 > quite sure if it is whats supposed to happen. The session limit was
3149 > set two 3 and i had one client loaded, Ron885, and the other one
3150 > connecting, Ron885_...
3151 >
3152 > [01:28:20] Global: OperServ - Ron885 added an SGLINE for ron (expires
3153 > in 1 minute)
3154 > [01:28:34] Connect: Ron885_ (ron885@ron.linux) on port 6667
3155 > [01:28:34] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3156 > (Invalid Real Name)
3157 > [01:28:34] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3158 > (Invalid Real Name))]
3159 > [01:28:37] Connect: Ron885_ (ron885@ron.linux) on port 6667
3160 > [01:28:37] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3161 > (Invalid Real Name)
3162 > [01:28:37] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3163 > (Invalid Real Name))]
3164 > [01:28:38] Connect: Ron885_ (ron885@ron.linux) on port 6667
3165 > [01:28:38] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3166 > (Session limit exceeded)
3167 > [01:28:38] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3168 > (Session limit exceeded))]
3169 > [01:28:43] Connect: Ron885_ (ron885@ron.linux) on port 6667
3170 > [01:28:43] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3171 > (Session limit exceeded)
3172 > [01:28:43] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3173 > (Session limit exceeded))]
3174 > [01:28:48] Connect: Ron885_ (ron885@ron.linux) on port 6667
3175 > [01:28:48] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3176 > (Session limit exceeded)
3177 > [01:28:48] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3178 > (Session limit exceeded))]
3179 > [01:28:52] Connect: Ron885_ (ron885@ron.linux) on port 6667
3180 > [01:28:52] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3181 > (Session limit exceeded)
3182 > [01:28:52] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3183 > (Session limit exceeded))]
3184 > [01:28:53] Connect: Ron885_ (ron885@ron.linux) on port 6667
3185 > [01:28:53] GLINE: added for *@ron.linux on Mon Dec 24 20:28:53 2001 GMT
3186 > (from OperServ to expire at Mon Dec 24 20:58:53 2001 GMT: Autokilled:
3187 > Exceeding session limit)
3188 > [01:28:53] KILL: Ron885_!ron885@axe-32362.ron.linux from OperServ
3189 > (Session limit exceeded)
3190 > [01:28:53] Disconnect: Ron885_ (ron885@ron.linux) [Killed (OperServ
3191 > (Session limit exceeded))]
3192 > [01:28:53] -1.axenet.org- *** You are banned from Axenet (Autokilled:
3193 > Exceeding session limit)
3194 > [01:28:53] Disconnect: Ron885 (ron885@ron.linux) [User has been banned
3195 > from Axenet (Autokilled: Exceeding session limit)]
3196 > [01:28:53] --- Closing Link: Ron885[ron.linux] (User has been banned
3197 > from Axenet (Autokilled: Exceeding session limit))
3198 > [01:28:53] --- Disconnected (Remote host closed socket).
3199 >
3200 > it seems as if the session list gets messed up... because afterwards i
3201 > had one client connected and did /os session view and it said 3 of 3
3202 > when there was only one connected...
3203 >
3204 > --
3205 > Ron885
3206 > TechAdmin @ irc.axenet.org
3207 >
3208 > Get your own FREE E-mail address at http://www.linuxfreemail.com
3209 > Linux FREE Mail is 100% FREE, 100% Linux, 100% better, and 100% yours!
3210 >
3211 >
3212 > ------------------------------------------------------------------
3213 > To unsubscribe or change your subscription options, visit:
3214 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
3215 >
3216
3217
3218 From achurch at achurch.org Wed Dec 26 10:30:20 2001
3219 From: achurch at achurch.org (Andrew Church)
3220 Date: Sat Oct 23 23:09:12 2004
3221 Subject: [IRCServices Coding] A bug i think...
3222 Message-ID: <3c29288e.06571@achurch.org>
3223
3224 >I was playing with alpha8 last night, and discovered this and wasn't
3225 >quite sure if it is whats supposed to happen. The session limit was
3226 >set two 3 and i had one client loaded, Ron885, and the other one
3227 >connecting, Ron885_...
3228 [...]
3229 >it seems as if the session list gets messed up... because afterwards i
3230 >had one client connected and did /os session view and it said 3 of 3
3231 >when there was only one connected...
3232
3233 This is because the session/exception callback gets called before the
3234 S-line one, leaving "ghost" users in the session count. Fixed, thanks.
3235 Patch is as follows (not tested):
3236
3237 --- modules/operserv/sessions.c 24 Dec 2001 13:20:09 -0000 2.30
3238 +++ modules/operserv/sessions.c 26 Dec 2001 01:27:15 -0000
3239 @@ -728,7 +728,13 @@
3240 return 0;
3241 }
3242
3243 - if (!add_callback(NULL, "user check", check_sessions)
3244 + /* Add user check callback at priority -10 so it runs after all the
3245 + * autokill/S-line/whatever checks (otherwise we get users added to
3246 + * sessions and then killed by S-lines, leaving the session count
3247 + * jacked up). FIXME: we really really need to document places where
3248 + * we use callback priorities.
3249 + */
3250 + if (!add_callback_pri(NULL, "user check", check_sessions, -10)
3251 || !add_callback(NULL, "user delete", remove_session)
3252 || !add_callback(NULL, "save data", do_save_data)
3253 || !add_callback(NULL, "expire", expire_exceptions)
3254
3255 --Andrew Church
3256 achurch@achurch.org
3257 http://achurch.org/
3258
3259 From achurch at achurch.org Wed Dec 26 11:30:02 2001
3260 From: achurch at achurch.org (Andrew Church)
3261 Date: Sat Oct 23 23:09:12 2004
3262 Subject: [IRCServices Coding] Services 5.0 alpha 9 released
3263 Message-ID: <3c2939c5.10626@achurch.org>
3264
3265 >> You should probably look into what check_access_cumode()
3266 >> (modules/chanserv/access.c) is doing; that part of the
3267 >> code has been
3268 >> thoroughly redone and gotten almost no testing. I'm not
3269 >> sure what would
3270 >> cause the autovoice level to get set to 0.
3271 >
3272 >Ahh, I wasn't very clear there - the autovoice level was set to 0 on
3273 >the version 4 services by my chanops to make it easier to silence
3274 >certain users :). On the v5 net, with both the xOP and Levels modules
3275 >loaded, nothing happens to level 0 users, and users previously
3276 >autoopped (levels 5+) are all set mode +hq (insofar as that there is
3277 >more than one +q user in the room...).
3278
3279 Hm, I'll have to take a look into that... but it will have to be after
3280 I get back from vacation, I think. (: If you want to look into it yourself,
3281 check_access_cumode() is a good place to start, as mentioned above.
3282
3283 >- The news.db database (imported from version 4) corrupted rather
3284 >easily the first time I sent services a SIGTERM. Now I get [Oper
3285 >News - Jan 01 1970] (null).
3286
3287 I, uh, fixed that. Really. The gremlins must have backed out my
3288 commit, or something.
3289
3290 >- The /os rehash command doesn't seem to rehash very many
3291 >configuration options. I could be wrong, but I don't think I've seen
3292 >any of the modules.conf options updated using this command.
3293
3294 It should get most of them, and you should get log messages for ones
3295 that can't be dynamically updated. (However, this is only since alpha 8;
3296 alpha 7 didn't have support for reconfiguration in the modules.) At the
3297 least I've been able to make OperServ dynamically change nicks here.
3298
3299 >- httpd/auth-password doesn't seem to work at all for me:
3300 >Module httpd/auth-password
3301 > AuthName "PhaseNet Test IRC Services"
3302 > Protect /debug "quack:quack"
3303 > Protect /dbaccess "quack:quack"
3304 >EndModule
3305 >
3306 >No auth box is presented
3307
3308 Hm, it seems to have broken somewhere. I'll look into this as well.
3309
3310 >- The httpd/dbaccess module is very useful for debugging
3311 >access/levels problems such as the above, but it would be quite handy
3312 >to have a http://serviceshost/dbaccess/chanserv/chan/levels page,
3313 >showing the xOP levels sometimes.
3314
3315 Added to TODO.
3316
3317 --Andrew Church
3318 achurch@achurch.org
3319 http://achurch.org/
3320
3321 From achurch at achurch.org Wed Dec 26 11:45:30 2001
3322 From: achurch at achurch.org (Andrew Church)
3323 Date: Sat Oct 23 23:09:12 2004
3324 Subject: [IRCServices Coding] More bugs... :)
3325 Message-ID: <3c2939f1.10637@achurch.org>
3326
3327 >Another small XML bug, courtesy of IE6's XML parser :)
3328 >
3329 >Line 243 of modules/misc/xml-export.c is:
3330 > writefunc(data, "\t<nickinfo>\n");
3331 >and should be:
3332 > writefunc(data, "\t</nickinfo>\n");
3333 >with the forwardslash.
3334
3335 Thanks, fixed.
3336
3337 >After that's changed the XML checks out fine in IE.
3338
3339 That's good to know... especially as it's my first attempt in doing
3340 anything at all with XML. (:
3341
3342 --Andrew Church
3343 achurch@achurch.org
3344 http://achurch.org/
3345
3346 From griever at t2n.org Tue Dec 25 19:30:49 2001
3347 From: griever at t2n.org (Finny Merrill)
3348 Date: Sat Oct 23 23:09:12 2004
3349 Subject: [IRCServices Coding] Services 5.0 alpha 9 released
3350 In-Reply-To: <3c2939c5.10626@achurch.org>
3351 Message-ID: <Pine.LNX.4.33.0112252130300.4244-100000@linux.ircd-net.org>
3352
3353 On Wed, 26 Dec 2001, Andrew Church wrote:
3354
3355 > >> You should probably look into what check_access_cumode()
3356 > >> (modules/chanserv/access.c) is doing; that part of the
3357 > >> code has been
3358 > >> thoroughly redone and gotten almost no testing. I'm not
3359 > >> sure what would
3360 > >> cause the autovoice level to get set to 0.
3361 > >
3362 > >Ahh, I wasn't very clear there - the autovoice level was set to 0 on
3363 > >the version 4 services by my chanops to make it easier to silence
3364 > >certain users :). On the v5 net, with both the xOP and Levels modules
3365 > >loaded, nothing happens to level 0 users, and users previously
3366 > >autoopped (levels 5+) are all set mode +hq (insofar as that there is
3367 > >more than one +q user in the room...).
3368 >
3369 > Hm, I'll have to take a look into that... but it will have to be after
3370 > I get back from vacation, I think. (: If you want to look into it yourself,
3371 > check_access_cumode() is a good place to start, as mentioned above.
3372 >
3373 > >- The news.db database (imported from version 4) corrupted rather
3374 > >easily the first time I sent services a SIGTERM. Now I get [Oper
3375 > >News - Jan 01 1970] (null).
3376 >
3377 > I, uh, fixed that. Really. The gremlins must have backed out my
3378 > commit, or something.
3379 >
3380 > >- The /os rehash command doesn't seem to rehash very many
3381 > >configuration options. I could be wrong, but I don't think I've seen
3382 > >any of the modules.conf options updated using this command.
3383 >
3384 > It should get most of them, and you should get log messages for ones
3385 > that can't be dynamically updated. (However, this is only since alpha 8;
3386 > alpha 7 didn't have support for reconfiguration in the modules.) At the
3387 > least I've been able to make OperServ dynamically change nicks here.
3388 >
3389 > >- httpd/auth-password doesn't seem to work at all for me:
3390 > >Module httpd/auth-password
3391 > > AuthName "PhaseNet Test IRC Services"
3392 > > Protect /debug "quack:quack"
3393 > > Protect /dbaccess "quack:quack"
3394 > >EndModule
3395 > >
3396 > >No auth box is presented
3397
3398 You *DO* have the LoadModule line in services.conf, right?
3399
3400 >
3401 > Hm, it seems to have broken somewhere. I'll look into this as well.
3402 >
3403 > >- The httpd/dbaccess module is very useful for debugging
3404 > >access/levels problems such as the above, but it would be quite handy
3405 > >to have a http://serviceshost/dbaccess/chanserv/chan/levels page,
3406 > >showing the xOP levels sometimes.
3407 >
3408 > Added to TODO.
3409 >
3410 > --Andrew Church
3411 > achurch@achurch.org
3412 > http://achurch.org/
3413 > ------------------------------------------------------------------
3414 > To unsubscribe or change your subscription options, visit:
3415 > http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
3416 >
3417
3418
3419 From achurch at achurch.org Wed Dec 26 14:23:28 2001
3420 From: achurch at achurch.org (Andrew Church)
3421 Date: Sat Oct 23 23:09:12 2004
3422 Subject: [IRCServices Coding] Services 5.0 alpha 9 released
3423 Message-ID: <3c295f7a.25341@achurch.org>
3424
3425 >Ahh, I wasn't very clear there - the autovoice level was set to 0 on
3426 >the version 4 services by my chanops to make it easier to silence
3427 >certain users :). On the v5 net, with both the xOP and Levels modules
3428 >loaded, nothing happens to level 0 users, and users previously
3429 >autoopped (levels 5+) are all set mode +hq (insofar as that there is
3430 >more than one +q user in the room...).
3431 [...]
3432 >- The news.db database (imported from version 4) corrupted rather
3433 >easily the first time I sent services a SIGTERM. Now I get [Oper
3434 >News - Jan 01 1970] (null).
3435 [...]
3436 >- httpd/auth-password doesn't seem to work at all for me:
3437 >Module httpd/auth-password
3438 > AuthName "PhaseNet Test IRC Services"
3439 > Protect /debug "quack:quack"
3440 > Protect /dbaccess "quack:quack"
3441 >EndModule
3442 >
3443 >No auth box is presented
3444 >
3445 >- The httpd/dbaccess module is very useful for debugging
3446 >access/levels problems such as the above, but it would be quite handy
3447 >to have a http://serviceshost/dbaccess/chanserv/chan/levels page,
3448 >showing the xOP levels sometimes.
3449
3450 Okay, these are all fixed, and I'll put out another alpha release
3451 with the fixes in a moment. Ironically, the +hq bug, which I thought
3452 would be tricky to track down, turned out to be a simple one-line fix,
3453 while the dbaccess levels addition, which seemed pretty simple at first
3454 glance, took a bit of reorganizing things. Just goes to show something
3455 or other, I guess...
3456
3457 --Andrew Church
3458 achurch@achurch.org
3459 http://achurch.org/
3460
3461 From achurch at achurch.org Wed Dec 26 14:45:03 2001
3462 From: achurch at achurch.org (Andrew Church)
3463 Date: Sat Oct 23 23:09:12 2004
3464 Subject: [IRCServices Coding] Services 5.0 alpha 10 released
3465 Message-ID: <3c2963d3.41711@achurch.org>
3466
3467 Okay, this will _really_ be the last release before I leave on
3468 vacation, because I leave in about 15 minutes. (: Patches for the recently
3469 mentioned bugs are included. Change list is below:
3470
3471 Version 5.0
3472 -----------
3473 2001/12/26 a10 Fixed bug causing strange channel user modes to be auto-set.
3474 Reported by Russ Garrett <russ@garrett.co.uk>
3475 2001/12/26 Added access levels link to ChanServ information page
3476 (httpd/dbaccess). Suggested by Russ Garrett
3477 <russ@garrett.co.uk>
3478 2001/12/26 Fixed bug in auth-password module causing Protect lines to be
3479 ignored. Reported by Russ Garrett <russ@garrett.co.uk>
3480 2001/12/26 Fixed bug in news database writing causing corruption.
3481 2001/12/26 Fixed missing slash on closing <nickinfo> tag in XML export
3482 module. Reported by Russ Garrett <russ@garrett.co.uk>
3483 2001/12/26 Fixed callback ordering bug causing S-line kills to leave
3484 "ghost" users in the session count. Reported by
3485 <ron885@linuxfreemail.com>
3486 2001/12/26 Fixed off-by-one bug causing corrupted output in XML export
3487 module. Reported by Russ Garrett <russ@garrett.co.uk>
3488
3489 --Andrew Church
3490 achurch@achurch.org
3491 http://achurch.org/
3492
3493 From chromi at cyberspace.org Tue Dec 25 07:16:06 2001
3494 From: chromi at cyberspace.org (Jonathan Morton)
3495 Date: Sat Oct 23 23:09:12 2004
3496 Subject: [IRCServices Coding] Hello !
3497 In-Reply-To: <20011225124018.3C86B1742B@snow.fingers.co.za>
3498 References: <20011225124018.3C86B1742B@snow.fingers.co.za>
3499 Message-ID: <a05101000b84e485d9bcc@[10.0.1.2]>
3500
3501 >Is the Alpha distributed with some kind of "not public" license ?
3502 >I do know the term "use it at your own risk", but this "forbidden to
3503 >use on a live network" is a new one.
3504
3505 You're not forbidden to use it on a live network. You are, however,
3506 forbidden from making a fuss when your p***ed-off users break down
3507 your front door. :) You're also forbidden from whining about how
3508 buggy it is - it'a an ALPHA release for crying out loud.
3509
3510 --
3511 --------------------------------------------------------------
3512 from: Jonathan "Chromatix" Morton
3513 mail: chromi@cyberspace.org (not for attachments)
3514 website: http://www.chromatix.uklinux.net/vnc/
3515 geekcode: GCS$/E dpu(!) s:- a20 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$
3516 V? PS PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r++ y+(*)
3517 tagline: The key to knowledge is not to rely on people to teach you it.
3518
3519 From rg at tcslon.com Wed Dec 26 06:48:22 2001
3520 From: rg at tcslon.com (Russell Garrett)
3521 Date: Sat Oct 23 23:09:12 2004
3522 Subject: [IRCServices Coding] Services 5.0 alpha 10 released
3523 In-Reply-To: <3c2963d3.41711@achurch.org>
3524 Message-ID: <NDBBLDHKLKMANPGMACIGOEIDCNAA.rg@tcslon.com>
3525
3526 > Okay, this will _really_ be the last release before I leave on
3527 > vacation, because I leave in about 15 minutes. (: Patches
3528
3529 Ok, I'll queue some more bugs up in your inbox for when you return ;)
3530
3531 memoserv/forward: /ms SET FORWARD [ON|OFF|COPY] doesn't work. Patch
3532 follows:
3533 modules/memoserv/forward.c:
3534 On line 152:
3535 } else if (stricmp(option, "ON") == 0) {
3536 should read:
3537 } else if (stricmp(param, "ON") == 0) {
3538 On line 156:
3539 } else if (stricmp(option, "COPY") == 0) {
3540 should read:
3541 } else if (stricmp(param, "COPY") == 0) {
3542 and on line 159:
3543 } else if (stricmp(option, "OFF") == 0) {
3544 should read:
3545 } else if (stricmp(param, "OFF") == 0) {
3546
3547 memoserv/forward: After applying the above fix, /ms SET FORWARD
3548 [ON|COPY] returns the following:
3549 [14:11:26] Your memos will now be forwarded to your E-mail address:
3550 (null)
3551 regardless of which or whether an e-mail was set, although the actual
3552 forwarding works. Looks pretty simple to fix. Something to do with
3553 notice_lang not being told the e-mail I think.
3554
3555 memoserv/forward: After applying the set forward fix, forwarded memo
3556 e-mails contain:
3557 Memo from (Dec 26 13:58:10 2001 GMT)
3558 without any name. Probably a similar problem to the above.
3559
3560 nickserv/autojoin: Although the AJOIN command works a treat, it
3561 doesn't seem to appear on the /ns HELP COMMANDS list.
3562
3563
3564 Cheers,
3565
3566 Russ Garrett (russ@garrett.co.uk)
3567
3568
3569 From rg at tcslon.com Wed Dec 26 09:20:54 2001
3570 From: rg at tcslon.com (Russell Garrett)
3571 Date: Sat Oct 23 23:09:12 2004
3572 Subject: [IRCServices Coding] Yet more bugs
3573 In-Reply-To: <3c2963d3.41711@achurch.org>
3574 Message-ID: <NDBBLDHKLKMANPGMACIGMEIECNAA.rg@tcslon.com>
3575
3576 memoserv/main: The memo send confirmation messages appear when
3577 sending to some users, but not others. I'm not sure what determines
3578 this though. Every time, however, the memo is sent, just sometimes it
3579 isn't confirmed.
3580
3581 Here is the fix for the missing e-mail address in the memoserv set
3582 forward message bug I reported earlier, if anyone wants it:
3583 /modules/memoserv/forward.c
3584 Line 155:
3585 notice_lang(s_MemoServ, u, MEMO_SET_FORWARD_ON);
3586 Change to:
3587 notice_lang(s_MemoServ, u, MEMO_SET_FORWARD_ON,
3588 u->ngi->email);
3589 Line 158:
3590 notice_lang(s_MemoServ, u, MEMO_SET_FORWARD_COPY);
3591 Change to:
3592 notice_lang(s_MemoServ, u, MEMO_SET_FORWARD_COPY,
3593 u->ngi->email);
3594
3595
3596 Russ Garrett (russ@garrett.co.uk)
3597
3598
3599 From dwd at buli.net Sat Dec 29 06:36:48 2001
3600 From: dwd at buli.net (dwd@buli.net)
3601 Date: Sat Oct 23 23:09:12 2004
3602 Subject: [IRCServices Coding] errors.log?
3603 Message-ID: <DPG.WIN.300.0112291536483020582672@drotposta.hu>
3604
3605 Hi!
3606
3607 errors.log:
3608 [Fri Dec 28 23:16:22 2001] - num - 1
3609
3610 What's this?
3611
3612 Thanks:
3613 --
3614 dwd
3615 ICQ#108548590
3616 chat@dwdworld.net
3617 http://chat.dwdworld.net