]> jfr.im git - irc.git/blame - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2001/002592.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2001 / 002592.html
CommitLineData
3bd189cb
JR
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2<HTML>
3 <HEAD>
4 <TITLE> [IRCServices] small akill bug
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20small%20akill%20bug&In-Reply-To=">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="002591.html">
11 <LINK REL="Next" HREF="002597.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] small akill bug</H1>
15 <B>Lloyd Williams</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20small%20akill%20bug&In-Reply-To="
17 TITLE="[IRCServices] small akill bug">binary_frog at chatcircuit.com
18 </A><BR>
19 <I>Sat Dec 1 16:02:00 PST 2001</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="002591.html">[IRCServices] Deleting a nick
22</A></li>
23 <LI>Next message: <A HREF="002597.html">[IRCServices] small akill bug
24</A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#2592">[ date ]</a>
27 <a href="thread.html#2592">[ thread ]</a>
28 <a href="subject.html#2592">[ subject ]</a>
29 <a href="author.html#2592">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33<!--beginarticle-->
34<PRE>cancel_akill() modifies the string that is passed to it, if
35WallAkillExpire is enabled, the printed string contains only the
36username part of the mask
37
38a simple fix:
39
40--- ircservices-4.5.33-orig/akill.c Fri Nov 23 11:10:35 2001
41+++ ircservices-4.5.33-fixed/akill.c Sat Dec 1 13:54:29 2001
42@@ -274,9 +274,10 @@
43
44/*************************************************************************/
45 -static void cancel_akill(char *mask)
46+static void cancel_akill(char *mask_)
47 {
48 #if defined(IRC_UNREAL) || defined(IRC_DALNET)
49+ char *mask = strdup(mask_);
50 char *s = strchr(mask, '@');
51 if (s) {
52 *s++ = 0;
53@@ -287,6 +288,7 @@
54 send_cmd(ServerName, &quot;RAKILL %s %s&quot;, s, mask);
55 # endif
56 }
57+ free(mask);
58 #endif
59 }
60
61
62</PRE>
63
64<!--endarticle-->
65 <HR>
66 <P><UL>
67 <!--threads-->
68 <LI>Previous message: <A HREF="002591.html">[IRCServices] Deleting a nick
69</A></li>
70 <LI>Next message: <A HREF="002597.html">[IRCServices] small akill bug
71</A></li>
72 <LI> <B>Messages sorted by:</B>
73 <a href="date.html#2592">[ date ]</a>
74 <a href="thread.html#2592">[ thread ]</a>
75 <a href="subject.html#2592">[ subject ]</a>
76 <a href="author.html#2592">[ author ]</a>
77 </LI>
78 </UL>
79
80</body></html>