Bugs: PATCH1.6: write_channels() writes excessive spaces.

lordares lordares at shatow.net
Wed Jun 16 17:56:49 CST 2004


Probably cosmetic, but annoying, and a simple harmfless fix.

write_channels() currently has spacing in the fprintf() for our own
readability.

This creates excessive gaps in chanfiles.

Patch fixes.

------
Bryan Drewery
-------------- next part --------------
Index: src/mod/channels.mod/channels.c
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.6/src/mod/channels.mod/channels.c,v
retrieving revision 1.87
diff -u -d -p -r1.87 channels.c
--- src/mod/channels.mod/channels.c	14 Jun 2004 01:14:06 -0000	1.87
+++ src/mod/channels.mod/channels.c	16 Jun 2004 23:54:47 -0000
@@ -392,16 +392,16 @@ static void write_channels()
     convert_element(chan->need_limit, need5);
     fprintf(f,
             "channel %s %s%schanmode %s idle-kick %d stopnethack-mode %d \
-            revenge-mode %d need-op %s need-invite %s need-key %s \
-            need-unban %s need-limit %s flood-chan %d:%d flood-ctcp %d:%d \
-            flood-join %d:%d flood-kick %d:%d flood-deop %d:%d \
-            flood-nick %d:%d aop-delay %d:%d ban-time %d exempt-time %d \
-            invite-time %d %cenforcebans %cdynamicbans %cuserbans %cautoop \
-            %cautohalfop %cbitch %cgreet %cprotectops %cprotecthalfops \
-            %cprotectfriends %cdontkickops %cstatuslog %crevenge %crevengebot \
-            %cautovoice %csecret %cshared %ccycle %cseen %cinactive \
-            %cdynamicexempts %cuserexempts %cdynamicinvites \
-            %cuserinvites %cnodesynch ",
+revenge-mode %d need-op %s need-invite %s need-key %s \
+need-unban %s need-limit %s flood-chan %d:%d flood-ctcp %d:%d \
+flood-join %d:%d flood-kick %d:%d flood-deop %d:%d \
+flood-nick %d:%d aop-delay %d:%d ban-time %d exempt-time %d \
+invite-time %d %cenforcebans %cdynamicbans %cuserbans %cautoop \
+%cautohalfop %cbitch %cgreet %cprotectops %cprotecthalfops \
+%cprotectfriends %cdontkickops %cstatuslog %crevenge %crevengebot \
+%cautovoice %csecret %cshared %ccycle %cseen %cinactive \
+%cdynamicexempts %cuserexempts %cdynamicinvites \
+%cuserinvites %cnodesynch ",
             channel_static(chan) ? "set" : "add", name, channel_static(chan) ?
             " " : " { ", w2, chan->idle_kick, chan->stopnethack_mode,
             chan->revenge_mode, need1, need2, need3, need4, need5,


More information about the Bugs mailing list