ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/releases/8.2.0beta2/modules/m_info.c
Revision: 1247
Committed: Sat Oct 1 07:54:24 2011 UTC (14 years, 9 months ago) by michael
Content type: text/x-csrc
Original Path: ircd-hybrid-8/modules/m_info.c
File size: 19254 byte(s)
Log Message:
- Rewrite and cleanup half-broken logging subsystem.
  Logfile rotating is not working yet

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * m_info.c: Sends information about the server.
4     *
5     * Copyright (C) 2005 by the past and present ircd coders, and others.
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20     * USA
21     *
22 knight 31 * $Id$
23 adx 30 */
24    
25     #include "stdinc.h"
26 michael 1011 #include "list.h"
27 adx 30 #include "m_info.h"
28     #include "channel.h"
29     #include "client.h"
30     #include "irc_string.h"
31     #include "ircd.h"
32     #include "numeric.h"
33     #include "s_log.h"
34     #include "s_serv.h"
35     #include "s_user.h"
36     #include "send.h"
37     #include "s_conf.h"
38     #include "parse.h"
39     #include "modules.h"
40    
41 michael 1230
42 adx 30 static void send_conf_options(struct Client *);
43     static void send_birthdate_online_time(struct Client *);
44     static void send_info_text(struct Client *);
45    
46     /*
47     * jdc -- Structure for our configuration value table
48     */
49     struct InfoStruct
50     {
51     const char *name; /* Displayed variable name */
52     unsigned int output_type; /* See below #defines */
53     void *option; /* Pointer reference to the value */
54     const char *desc; /* ASCII description of the variable */
55     };
56    
57     /* Types for output_type in InfoStruct */
58     #define OUTPUT_STRING 0x0001 /* Output option as %s w/ dereference */
59     #define OUTPUT_STRING_PTR 0x0002 /* Output option as %s w/out deference */
60     #define OUTPUT_DECIMAL 0x0004 /* Output option as decimal (%d) */
61     #define OUTPUT_BOOLEAN 0x0008 /* Output option as "ON" or "OFF" */
62     #define OUTPUT_BOOLEAN_YN 0x0010 /* Output option as "YES" or "NO" */
63     #define OUTPUT_BOOLEAN2 0x0020 /* Output option as "YES/NO/MASKED" */
64    
65     static const struct InfoStruct info_table[] =
66     {
67     /* --[ START OF TABLE ]-------------------------------------------- */
68     {
69     "network_name",
70     OUTPUT_STRING,
71     &ServerInfo.network_name,
72     "Network name"
73     },
74     {
75     "network_desc",
76     OUTPUT_STRING,
77     &ServerInfo.network_desc,
78     "Network description"
79     },
80     {
81     "hub",
82     OUTPUT_BOOLEAN_YN,
83     &ServerInfo.hub,
84     "Server is a hub"
85     },
86     {
87     "use_logging",
88     OUTPUT_BOOLEAN_YN,
89     &ConfigLoggingEntry.use_logging,
90     "Enable logging"
91     },
92     {
93     "restrict_channels",
94     OUTPUT_BOOLEAN_YN,
95     &ConfigChannel.restrict_channels,
96     "Only reserved channels are allowed"
97     },
98     {
99     "disable_local_channels",
100     OUTPUT_BOOLEAN_YN,
101     &ConfigChannel.disable_local_channels,
102     "Prevent users from joining &channels"
103     },
104     {
105     "use_invex",
106     OUTPUT_BOOLEAN_YN,
107     &ConfigChannel.use_invex,
108     "Enable chanmode +I (invite exceptions)"
109     },
110     {
111     "use_except",
112     OUTPUT_BOOLEAN_YN,
113     &ConfigChannel.use_except,
114     "Enable chanmode +e (ban exceptions)"
115     },
116     {
117     "use_knock",
118     OUTPUT_BOOLEAN_YN,
119     &ConfigChannel.use_knock,
120     "Enable /KNOCK"
121     },
122     {
123     "knock_delay",
124     OUTPUT_DECIMAL,
125     &ConfigChannel.knock_delay,
126     "Delay between a users KNOCK attempts"
127     },
128     {
129     "knock_delay_channel",
130     OUTPUT_DECIMAL,
131     &ConfigChannel.knock_delay_channel,
132     "Delay between KNOCK attempts to a channel"
133     },
134     {
135     "max_chans_per_user",
136     OUTPUT_DECIMAL,
137     &ConfigChannel.max_chans_per_user,
138     "Maximum number of channels a user can join"
139     },
140     {
141     "quiet_on_ban",
142     OUTPUT_BOOLEAN_YN,
143     &ConfigChannel.quiet_on_ban,
144     "Banned users may not send text to a channel"
145     },
146     {
147     "max_bans",
148     OUTPUT_DECIMAL,
149     &ConfigChannel.max_bans,
150     "Total +b/e/I modes allowed in a channel"
151     },
152     {
153     "default_split_user_count",
154     OUTPUT_DECIMAL,
155     &ConfigChannel.default_split_user_count,
156     "Startup value of SPLITUSERS"
157     },
158     {
159     "default_split_server_count",
160     OUTPUT_DECIMAL,
161     &ConfigChannel.default_split_server_count,
162     "Startup value of SPLITNUM"
163     },
164     {
165     "no_create_on_split",
166     OUTPUT_BOOLEAN_YN,
167     &ConfigChannel.no_create_on_split,
168     "Disallow creation of channels when split"
169     },
170     {
171     "no_join_on_split",
172     OUTPUT_BOOLEAN_YN,
173     &ConfigChannel.no_join_on_split,
174     "Disallow joining channels when split"
175     },
176     {
177     "burst_topicwho",
178     OUTPUT_BOOLEAN_YN,
179     &ConfigChannel.burst_topicwho,
180     "Enable sending of who set topic on topicburst"
181     },
182     {
183     "flatten_links",
184     OUTPUT_BOOLEAN_YN,
185     &ConfigServerHide.flatten_links,
186     "Flatten /links list"
187     },
188     {
189     "links_delay",
190     OUTPUT_DECIMAL,
191     &ConfigServerHide.links_delay,
192     "Links rehash delay"
193     },
194     {
195     "hidden",
196     OUTPUT_BOOLEAN_YN,
197     &ConfigServerHide.hidden,
198     "Hide this server from a flattened /links on remote servers"
199     },
200     {
201     "disable_hidden",
202     OUTPUT_BOOLEAN_YN,
203     &ConfigServerHide.disable_hidden,
204     "Prevent servers from hiding themselves from a flattened /links"
205     },
206     {
207     "hide_servers",
208     OUTPUT_BOOLEAN_YN,
209     &ConfigServerHide.hide_servers,
210     "Hide servernames from users"
211     },
212     {
213     "hidden_name",
214     OUTPUT_STRING,
215     &ConfigServerHide.hidden_name,
216     "Server name users see if hide_servers = yes"
217     },
218     {
219     "hide_server_ips",
220     OUTPUT_BOOLEAN_YN,
221     &ConfigServerHide.hide_server_ips,
222     "Prevent people from seeing server IPs"
223     },
224     {
225     "gline_min_cidr",
226     OUTPUT_DECIMAL,
227     &ConfigFileEntry.gline_min_cidr,
228     "Minimum required length of a CIDR bitmask for IPv4 G-Lines"
229     },
230     {
231     "gline_min_cidr6",
232     OUTPUT_DECIMAL,
233     &ConfigFileEntry.gline_min_cidr6,
234     "Minimum required length of a CIDR bitmask for IPv6 G-Lines"
235     },
236     {
237     "invisible_on_connect",
238     OUTPUT_BOOLEAN_YN,
239     &ConfigFileEntry.invisible_on_connect,
240     "Automatically set mode +i on connecting users"
241     },
242     {
243     "burst_away",
244     OUTPUT_BOOLEAN_YN,
245     &ConfigFileEntry.burst_away,
246     "Send /away string that users have set on the server burst"
247     },
248     {
249     "use_whois_actually",
250     OUTPUT_BOOLEAN_YN,
251     &ConfigFileEntry.use_whois_actually,
252     "Show IP address on /WHOIS when possible"
253     },
254     {
255     "kill_chase_time_limit",
256     OUTPUT_DECIMAL,
257     &ConfigFileEntry.kill_chase_time_limit,
258     "Nick Change Tracker for KILL"
259     },
260     {
261     "hide_spoof_ips",
262     OUTPUT_BOOLEAN_YN,
263     &ConfigFileEntry.hide_spoof_ips,
264     "Hide spoofed IP's"
265     },
266     {
267     "ignore_bogus_ts",
268     OUTPUT_BOOLEAN_YN,
269     &ConfigFileEntry.ignore_bogus_ts,
270     "Ignore bogus timestamps from other servers"
271     },
272     {
273     "disable_auth",
274     OUTPUT_BOOLEAN_YN,
275     &ConfigFileEntry.disable_auth,
276     "Completely disable ident lookups"
277     },
278     {
279     "disable_remote_commands",
280     OUTPUT_BOOLEAN_YN,
281     &ConfigFileEntry.disable_remote,
282     "Prevent users issuing commands on remote servers"
283     },
284     {
285     "tkline_expire_notices",
286     OUTPUT_BOOLEAN_YN,
287     &ConfigFileEntry.tkline_expire_notices,
288     "Show temporary kline/xline expire notices"
289     },
290     {
291     "default_floodcount",
292     OUTPUT_DECIMAL,
293     &ConfigFileEntry.default_floodcount,
294     "Startup value of FLOODCOUNT"
295     },
296     {
297     "failed_oper_notice",
298     OUTPUT_BOOLEAN,
299     &ConfigFileEntry.failed_oper_notice,
300     "Inform opers if someone /oper's with the wrong password"
301     },
302     {
303     "dots_in_ident",
304     OUTPUT_DECIMAL,
305     &ConfigFileEntry.dots_in_ident,
306     "Number of permissable dots in an ident"
307     },
308     {
309     "min_nonwildcard",
310     OUTPUT_DECIMAL,
311     &ConfigFileEntry.min_nonwildcard,
312     "Minimum non-wildcard chars in K/G lines"
313     },
314     {
315     "min_nonwildcard_simple",
316     OUTPUT_DECIMAL,
317     &ConfigFileEntry.min_nonwildcard_simple,
318     "Minimum non-wildcards in gecos bans"
319     },
320     {
321     "max_accept",
322     OUTPUT_DECIMAL,
323     &ConfigFileEntry.max_accept,
324     "Maximum nicknames on accept list"
325     },
326     {
327     "anti_nick_flood",
328     OUTPUT_BOOLEAN,
329     &ConfigFileEntry.anti_nick_flood,
330     "NICK flood protection"
331     },
332     {
333     "max_nick_time",
334     OUTPUT_DECIMAL,
335     &ConfigFileEntry.max_nick_time,
336     "NICK flood protection time interval"
337     },
338     {
339     "max_nick_changes",
340     OUTPUT_DECIMAL,
341     &ConfigFileEntry.max_nick_changes,
342     "NICK change threshhold setting"
343     },
344     {
345     "anti_spam_exit_message_time",
346     OUTPUT_DECIMAL,
347     &ConfigFileEntry.anti_spam_exit_message_time,
348     "Duration a client must be connected for to have an exit message"
349     },
350     {
351     "ts_warn_delta",
352     OUTPUT_DECIMAL,
353     &ConfigFileEntry.ts_warn_delta,
354     "Maximum permitted TS delta before displaying a warning"
355     },
356     {
357     "ts_max_delta",
358     OUTPUT_DECIMAL,
359     &ConfigFileEntry.ts_max_delta,
360     "Maximum permitted TS delta from another server"
361     },
362     {
363     "kline_with_reason",
364     OUTPUT_BOOLEAN_YN,
365     &ConfigFileEntry.kline_with_reason,
366     "Display K-line reason to client on disconnect"
367     },
368     {
369     "kline_reason",
370     OUTPUT_STRING,
371     &ConfigFileEntry.kline_reason,
372     "Reason given to K-lined clients on sign off"
373     },
374     {
375     "warn_no_nline",
376     OUTPUT_BOOLEAN,
377     &ConfigFileEntry.warn_no_nline,
378     "Display warning if connecting server lacks N-line"
379     },
380     {
381     "stats_o_oper_only",
382     OUTPUT_BOOLEAN_YN,
383     &ConfigFileEntry.stats_o_oper_only,
384     "STATS O output is only shown to operators"
385     },
386     {
387     "stats_P_oper_only",
388     OUTPUT_BOOLEAN_YN,
389     &ConfigFileEntry.stats_P_oper_only,
390     "STATS P is only shown to operators"
391     },
392     {
393     "stats_i_oper_only",
394     OUTPUT_BOOLEAN2,
395     &ConfigFileEntry.stats_i_oper_only,
396     "STATS I output is only shown to operators"
397     },
398     {
399     "stats_k_oper_only",
400     OUTPUT_BOOLEAN2,
401     &ConfigFileEntry.stats_k_oper_only,
402     "STATS K output is only shown to operators"
403     },
404     {
405     "caller_id_wait",
406     OUTPUT_DECIMAL,
407     &ConfigFileEntry.caller_id_wait,
408     "Minimum delay between notifying UMODE +g users of messages"
409     },
410     {
411     "opers_bypass_callerid",
412     OUTPUT_BOOLEAN_YN,
413     &ConfigFileEntry.opers_bypass_callerid,
414     "Allows IRC operators to message users who are +g (callerid)"
415     },
416     {
417     "pace_wait_simple",
418     OUTPUT_DECIMAL,
419     &ConfigFileEntry.pace_wait_simple,
420     "Minimum delay between less intensive commands"
421     },
422     {
423     "pace_wait",
424     OUTPUT_DECIMAL,
425     &ConfigFileEntry.pace_wait,
426     "Minimum delay between uses of certain commands"
427     },
428     {
429     "short_motd",
430     OUTPUT_BOOLEAN_YN,
431     &ConfigFileEntry.short_motd,
432     "Do not show MOTD; only tell clients they should read it"
433     },
434     {
435     "ping_cookie",
436     OUTPUT_BOOLEAN,
437     &ConfigFileEntry.ping_cookie,
438     "Require ping cookies to connect"
439     },
440     {
441     "no_oper_flood",
442     OUTPUT_BOOLEAN,
443     &ConfigFileEntry.no_oper_flood,
444     "Reduce flood control for operators"
445     },
446     {
447     "true_no_oper_flood",
448     OUTPUT_BOOLEAN,
449     &ConfigFileEntry.true_no_oper_flood,
450     "Completely disable flood control for operators"
451     },
452     {
453     "oper_pass_resv",
454     OUTPUT_BOOLEAN_YN,
455     &ConfigFileEntry.oper_pass_resv,
456     "Opers can over-ride RESVs"
457     },
458     {
459     "max_targets",
460     OUTPUT_DECIMAL,
461     &ConfigFileEntry.max_targets,
462     "The maximum number of PRIVMSG/NOTICE targets"
463     },
464     {
465     "client_flood",
466     OUTPUT_DECIMAL,
467     &ConfigFileEntry.client_flood,
468     "Maximum amount of data in a client's queue before they are disconnected"
469     },
470     {
471     "throttle_time",
472     OUTPUT_DECIMAL,
473     &ConfigFileEntry.throttle_time,
474     "Minimum time between client reconnects"
475     },
476     {
477     "glines",
478     OUTPUT_BOOLEAN,
479     &ConfigFileEntry.glines,
480     "G-line (network-wide K-line) support"
481     },
482     {
483     "duration",
484     OUTPUT_DECIMAL,
485     &ConfigFileEntry.gline_time,
486     "Expiry time for G-lines"
487     },
488     /* --[ END OF TABLE ]---------------------------------------------- */
489     {
490     NULL,
491     0,
492     NULL,
493     0
494     }
495     };
496    
497     /*
498     ** m_info()
499     ** parv[0] = sender prefix
500     ** parv[1] = servername
501     */
502     static void
503     m_info(struct Client *client_p, struct Client *source_p,
504     int parc, char *parv[])
505     {
506     static time_t last_used = 0;
507    
508     if ((last_used + ConfigFileEntry.pace_wait) > CurrentTime)
509     {
510     /* safe enough to give this on a local connect only */
511     sendto_one(source_p, form_str(RPL_LOAD2HI),
512     me.name, source_p->name);
513     return;
514     }
515    
516 michael 1121 last_used = CurrentTime;
517    
518 adx 30 if (!ConfigFileEntry.disable_remote)
519 michael 1144 if (hunt_server(client_p,source_p, ":%s INFO :%s", 1,
520     parc, parv) != HUNTED_ISME)
521 adx 30 return;
522    
523 michael 1144 send_info_text(source_p);
524 adx 30 }
525    
526     /*
527     ** mo_info()
528     ** parv[0] = sender prefix
529     ** parv[1] = servername
530     */
531     static void
532     mo_info(struct Client *client_p, struct Client *source_p,
533     int parc, char *parv[])
534     {
535     if (hunt_server(client_p, source_p, ":%s INFO :%s", 1,
536     parc, parv) != HUNTED_ISME)
537     return;
538    
539 michael 1144 send_info_text(source_p);
540 adx 30 }
541    
542     /*
543     ** ms_info()
544     ** parv[0] = sender prefix
545     ** parv[1] = servername
546     */
547     static void
548     ms_info(struct Client *client_p, struct Client *source_p,
549     int parc, char *parv[])
550     {
551     if (!IsClient(source_p))
552     return;
553    
554 michael 1144 if (hunt_server(client_p, source_p, ":%s INFO :%s", 1,
555     parc, parv) != HUNTED_ISME)
556 adx 30 return;
557    
558 michael 1144 send_info_text(source_p);
559 adx 30 }
560    
561     /* send_info_text()
562     *
563     * inputs - client pointer to send info text to
564     * output - NONE
565     * side effects - info text is sent to client
566     */
567     static void
568     send_info_text(struct Client *source_p)
569     {
570     const char **text = infotext;
571     char *source, *target;
572 michael 1144
573     sendto_realops_flags(UMODE_SPY, L_ALL,
574     "INFO requested by %s (%s@%s) [%s]",
575     source_p->name, source_p->username,
576     source_p->host, source_p->servptr->name);
577    
578 adx 30 if (!MyClient(source_p) && IsCapable(source_p->from, CAP_TS6) &&
579     HasID(source_p))
580     source = me.id, target = source_p->id;
581     else
582     source = me.name, target = source_p->name;
583    
584     while (*text)
585     {
586     const char *line = *text++;
587    
588     if (*line == '\0')
589     line = " ";
590    
591     sendto_one(source_p, form_str(RPL_INFO),
592     source, target, line);
593     }
594    
595 michael 1219 if (HasUMode(source_p, UMODE_OPER))
596 adx 30 send_conf_options(source_p);
597    
598     send_birthdate_online_time(source_p);
599    
600     sendto_one(source_p, form_str(RPL_ENDOFINFO),
601     me.name, source_p->name);
602     }
603    
604     /* send_birthdate_online_time()
605     *
606     * inputs - client pointer to send to
607     * output - NONE
608     * side effects - birthdate and online time are sent
609     */
610     static void
611     send_birthdate_online_time(struct Client *source_p)
612     {
613     if (!MyClient(source_p) && IsCapable(source_p->from, CAP_TS6) && HasID(source_p))
614     {
615     sendto_one(source_p, ":%s %d %s :On-line since %s",
616     me.id, RPL_INFO, source_p->id,
617 michael 1241 myctime(me.localClient->firsttime));
618 adx 30 }
619     else
620     {
621     sendto_one(source_p, ":%s %d %s :On-line since %s",
622     me.name, RPL_INFO, source_p->name,
623 michael 1241 myctime(me.localClient->firsttime));
624 adx 30 }
625     }
626    
627     /* send_conf_options()
628     *
629     * inputs - client pointer to send to
630     * output - NONE
631     * side effects - send config options to client
632     */
633     static void
634     send_conf_options(struct Client *source_p)
635     {
636     Info *infoptr;
637     const char *from, *to;
638     const struct InfoStruct *iptr = NULL;
639    
640     /* Now send them a list of all our configuration options
641 michael 912 * (mostly from defaults.h and config.h)
642 adx 30 */
643     if (!MyClient(source_p) && IsCapable(source_p->from, CAP_TS6) && HasID(source_p))
644     {
645     from = me.id;
646     to = source_p->id;
647     }
648     else
649     {
650     from = me.name;
651     to = source_p->name;
652     }
653    
654     for (infoptr = MyInformation; infoptr->name; infoptr++)
655     {
656     if (infoptr->intvalue)
657     {
658     sendto_one(source_p, ":%s %d %s :%-30s %-5d [%-30s]",
659     from, RPL_INFO, to, infoptr->name,
660     infoptr->intvalue, infoptr->desc);
661     }
662     else
663     {
664     sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
665     from, RPL_INFO, to, infoptr->name,
666     infoptr->strvalue, infoptr->desc);
667     }
668     }
669    
670     /*
671     * Parse the info_table[] and do the magic.
672     */
673     for (iptr = info_table; iptr->name; ++iptr)
674     {
675     switch (iptr->output_type)
676     {
677     /* For "char *" references */
678     case OUTPUT_STRING:
679     {
680     const char *option = *((char **)iptr->option);
681    
682     sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
683     from, RPL_INFO, to,
684     iptr->name, option ? option : "NONE",
685     iptr->desc ? iptr->desc : "<none>");
686     break;
687     }
688    
689     /* For "char foo[]" references */
690     case OUTPUT_STRING_PTR:
691     {
692     const char *option = iptr->option;
693    
694     sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
695     from, RPL_INFO, to,
696     iptr->name, option ? option : "NONE",
697     iptr->desc ? iptr->desc : "<none>");
698     break;
699     }
700    
701     /* Output info_table[i].option as a decimal value. */
702     case OUTPUT_DECIMAL:
703     {
704     const int option = *((int *)iptr->option);
705    
706     sendto_one(source_p, ":%s %d %s :%-30s %-5d [%-30s]",
707     from, RPL_INFO, to, iptr->name,
708     option, iptr->desc ? iptr->desc : "<none>");
709     break;
710     }
711    
712     /* Output info_table[i].option as "ON" or "OFF" */
713     case OUTPUT_BOOLEAN:
714     {
715     const int option = *((int *)iptr->option);
716    
717     sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
718     from, RPL_INFO, to,
719     iptr->name, option ? "ON" : "OFF",
720     iptr->desc ? iptr->desc : "<none>");
721    
722     break;
723     }
724    
725     /* Output info_table[i].option as "YES" or "NO" */
726     case OUTPUT_BOOLEAN_YN:
727     {
728     int option = *((int *)iptr->option);
729    
730     sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
731     from, RPL_INFO, to,
732     iptr->name, option ? "YES" : "NO",
733     iptr->desc ? iptr->desc : "<none>");
734     break;
735     }
736    
737     case OUTPUT_BOOLEAN2:
738     {
739     int option = *((int *)iptr->option);
740    
741     sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
742     from, RPL_INFO, to,
743     iptr->name, option ? ((option == 1) ? "MASK" : "YES") : "NO",
744     iptr->desc ? iptr->desc : "<none>");
745     break;
746     }
747     }
748     }
749    
750     /* Don't send oper_only_umodes...it's a bit mask, we will have to decode it
751     * in order for it to show up properly to opers who issue INFO
752     */
753     #ifndef EFNET
754     /* jdc -- Only send compile information to admins. */
755 michael 1219 if (HasUMode(source_p, UMODE_ADMIN))
756 adx 30 sendto_one(source_p, ":%s %d %s :Running on [%s]",
757     from, RPL_INFO, to, ircd_platform);
758     #endif
759     sendto_one(source_p, form_str(RPL_INFO),
760     from, to, "");
761     }
762 michael 1230
763     static struct Message info_msgtab = {
764     "INFO", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
765     { m_unregistered, m_info, ms_info, m_ignore, mo_info, m_ignore }
766     };
767    
768     static void
769     module_init(void)
770     {
771     mod_add_cmd(&info_msgtab);
772     }
773    
774     static void
775     module_exit(void)
776     {
777     mod_del_cmd(&info_msgtab);
778     }
779    
780     struct module module_entry = {
781     .node = { NULL, NULL, NULL },
782     .name = NULL,
783     .version = "$Revision$",
784     .handle = NULL,
785     .modinit = module_init,
786     .modexit = module_exit,
787     .flags = 0
788     };

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision