/[svn]/ircd-hybrid-8/contrib/m_ojoin.c
ViewVC logotype

Diff of /ircd-hybrid-8/contrib/m_ojoin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1473 by michael, Wed Jan 18 08:20:31 2012 UTC revision 1474 by michael, Sun Jul 22 14:44:07 2012 UTC
# Line 87  mo_ojoin(struct Client *client_p, struct Line 87  mo_ojoin(struct Client *client_p, struct
87          ++name;          ++name;
88          break;          break;
89        case '#':        case '#':
       case '&':  
90          prefix = "";          prefix = "";
91          flags = 0;          flags = 0;
92          modeletter = '\0';          modeletter = '\0';
# Line 110  mo_ojoin(struct Client *client_p, struct Line 109  mo_ojoin(struct Client *client_p, struct
109      {      {
110        add_user_to_channel(chptr, source_p, flags, 0);        add_user_to_channel(chptr, source_p, flags, 0);
111    
112        if (chptr->chname[0] == '#')        DLINK_FOREACH(ptr, serv_list.head)
113          DLINK_FOREACH(ptr, serv_list.head)        {
114          {          struct Client *serv_p = ptr->data;
           struct Client *serv_p = ptr->data;  
115    
116            sendto_one(serv_p, ":%s SJOIN %lu %s + :%s%s", ID_or_name(&me, serv_p),          sendto_one(serv_p, ":%s SJOIN %lu %s + :%s%s", ID_or_name(&me, serv_p),
117                       (unsigned long)chptr->channelts, chptr->chname,                     (unsigned long)chptr->channelts, chptr->chname,
118                       (*prefix == '%' && !IsCapable(serv_p, CAP_HOPS)) ?                     (*prefix == '%' && !IsCapable(serv_p, CAP_HOPS)) ?
119                       "@" : prefix, ID_or_name(source_p, serv_p));                     "@" : prefix, ID_or_name(source_p, serv_p));
120          }        }
121    
122        sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s!%s@%s JOIN %s",        sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s!%s@%s JOIN %s",
123                             source_p->name, source_p->username,                             source_p->name, source_p->username,

Legend:
Removed from v.1473  
changed lines
  Added in v.1474

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28