ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/channel_mode.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/channel_mode.c (file contents):
Revision 3373 by michael, Sun Apr 20 14:03:06 2014 UTC vs.
Revision 3374 by michael, Tue Apr 22 20:01:46 2014 UTC

# Line 121 | Line 121 | add_id(struct Client *client_p, struct C
121    char host[HOSTLEN + 1] = "";
122    struct split_nuh_item nuh;
123  
124 <  /* dont let local clients overflow the b/e/I lists */
124 >  /* Don't let local clients overflow the b/e/I lists */
125    if (MyClient(client_p))
126    {
127      num_mask = dlink_list_length(&chptr->banlist) +
# Line 219 | Line 219 | add_id(struct Client *client_p, struct C
219   static int
220   del_id(struct Channel *chptr, char *banid, unsigned int type)
221   {
222 <  dlink_list *list;
223 <  dlink_node *ban;
222 >  dlink_list *list = NULL;
223 >  dlink_node *ban = NULL;
224    char name[NICKLEN + 1] = "";
225    char user[USERLEN + 1] = "";
226    char host[HOSTLEN + 1] = "";
# Line 420 | Line 420 | clear_ban_cache_client(struct Client *cl
420  
421   /* Mode functions handle mode changes for a particular mode... */
422   static void
423 < chm_nosuch(struct Client *source_p,
424 <           struct Channel *chptr, int parc, int *parn,
423 > chm_nosuch(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
424             char **parv, int *errors, int alev, int dir, char c, unsigned int d)
425   {
426    if (*errors & SM_ERR_UNKNOWN)
# Line 432 | Line 431 | chm_nosuch(struct Client *source_p,
431   }
432  
433   static void
434 < chm_simple(struct Client *source_p, struct Channel *chptr,
435 <           int parc, int *parn, char **parv, int *errors, int alev, int dir,
437 <           char c, unsigned int d)
434 > chm_simple(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
435 >           char **parv, int *errors, int alev, int dir, char c, unsigned int d)
436   {
437    if ((alev < CHACCESS_HALFOP) ||
438        ((d == MODE_PRIVATE) && (alev < CHACCESS_CHANOP)))
# Line 486 | Line 484 | chm_simple(struct Client *source_p, stru
484   }
485  
486   static void
487 < chm_registered(struct Client *source_p, struct Channel *chptr,
488 <               int parc, int *parn, char **parv, int *errors, int alev, int dir,
491 <               char c, unsigned int d)
487 > chm_registered(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
488 >               char **parv, int *errors, int alev, int dir, char c, unsigned int d)
489   {
490    if (!IsServer(source_p) && !HasFlag(source_p, FLAGS_SERVICE))
491    {
# Line 599 | Line 596 | chm_operonly(struct Client *source_p, st
596   }
597  
598   static void
599 < chm_ban(struct Client *source_p,
603 <        struct Channel *chptr, int parc, int *parn,
599 > chm_ban(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
600          char **parv, int *errors, int alev, int dir, char c, unsigned int d)
601   {
602    char *mask = NULL;
# Line 669 | Line 665 | chm_ban(struct Client *source_p,
665   }
666  
667   static void
668 < chm_except(struct Client *source_p,
673 <           struct Channel *chptr, int parc, int *parn,
668 > chm_except(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
669             char **parv, int *errors, int alev, int dir, char c, unsigned int d)
670   {
671    char *mask = NULL;
# Line 740 | Line 735 | chm_except(struct Client *source_p,
735   }
736  
737   static void
738 < chm_invex(struct Client *source_p,
744 <          struct Channel *chptr, int parc, int *parn,
738 > chm_invex(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
739            char **parv, int *errors, int alev, int dir, char c, unsigned int d)
740   {
741    char *mask = NULL;
# Line 811 | Line 805 | chm_invex(struct Client *source_p,
805   }
806  
807   static void
808 < chm_voice(struct Client *source_p,
815 <          struct Channel *chptr, int parc, int *parn,
808 > chm_voice(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
809            char **parv, int *errors, int alev, int dir, char c, unsigned int d)
810   {
811    const char *opnick = NULL;
# Line 869 | Line 862 | chm_voice(struct Client *source_p,
862  
863   #ifdef HALFOPS
864   static void
865 < chm_hop(struct Client *source_p,
873 <        struct Channel *chptr, int parc, int *parn,
865 > chm_hop(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
866          char **parv, int *errors, int alev, int dir, char c, unsigned int d)
867   {
868    const char *opnick = NULL;
# Line 944 | Line 936 | chm_hop(struct Client *source_p,
936   #endif
937  
938   static void
939 < chm_op(struct Client *source_p,
948 <       struct Channel *chptr, int parc, int *parn,
939 > chm_op(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
940         char **parv, int *errors, int alev, int dir, char c, unsigned int d)
941   {
942    const char *opnick = NULL;
# Line 1004 | Line 995 | chm_op(struct Client *source_p,
995   }
996  
997   static void
998 < chm_limit(struct Client *source_p,
1008 <          struct Channel *chptr, int parc, int *parn,
998 > chm_limit(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
999            char **parv, int *errors, int alev, int dir, char c, unsigned int d)
1000   {
1001    unsigned int i = 0;
# Line 1062 | Line 1052 | chm_limit(struct Client *source_p,
1052   }
1053  
1054   static void
1055 < chm_key(struct Client *source_p,
1066 <        struct Channel *chptr, int parc, int *parn,
1055 > chm_key(struct Client *source_p, struct Channel *chptr, int parc, int *parn,
1056          char **parv, int *errors, int alev, int dir, char c, unsigned int d)
1057   {
1058    unsigned int i = 0;
# Line 1416 | Line 1405 | get_channel_access(const struct Client *
1405    if (!member)
1406      return CHACCESS_NOTONCHAN;
1407  
1408 <  /* just to be sure.. */
1408 >  /* Just to be sure.. */
1409    assert(source_p == member->client_p);
1410  
1411    if (has_member_flags(member, CHFL_CHANOP))
# Line 1453 | Line 1442 | send_mode_changes_server(struct Client *
1442    mbl = snprintf(modebuf, sizeof(modebuf), ":%s TMODE %lu %s ", source_p->id,
1443                   (unsigned long)chptr->channelts, chptr->chname);
1444  
1445 <  /* loop the list of modes we have */
1445 >  /* Loop the list of modes we have */
1446    for (i = 0; i < mode_count; ++i)
1447    {
1448      if (mode_changes[i].letter == 0) /* XXX: can it ever happen? */

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)