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

Comparing ircd-hybrid/trunk/modules/m_svsmode.c (file contents):
Revision 4340 by michael, Sat Aug 2 16:53:22 2014 UTC vs.
Revision 4962 by michael, Mon Dec 1 13:08:31 2014 UTC

# Line 16 | Line 16
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
19 > *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20   *  USA
21   */
22  
# Line 50 | Line 50
50   *      - parv[1] = nickname
51   *      - parv[2] = TS
52   *      - parv[3] = mode
53 < *      - parv[4] = optional argument (services id, vhost)
53 > *      - parv[4] = optional argument (services account, vhost)
54   */
55   static int
56   ms_svsmode(struct Client *source_p, int parc, char *parv[])
# Line 89 | Line 89 | ms_svsmode(struct Client *source_p, int
89  
90        case 'd':
91          if (!EmptyString(extarg))
92 <          strlcpy(target_p->svid, extarg, sizeof(target_p->svid));
92 >          strlcpy(target_p->account, extarg, sizeof(target_p->account));
93          break;
94  
95        case 'x':
# Line 105 | Line 105 | ms_svsmode(struct Client *source_p, int
105  
106            if (MyConnect(target_p))
107            {
108 <            dlink_node *dm = NULL;
108 >            dlink_node *node = NULL;
109  
110              detach_conf(target_p, CONF_OPER);
111              ClrOFlag(target_p);
112              DelUMode(target_p, ConfigGeneral.oper_only_umodes);
113  
114 <            if ((dm = dlinkFindDelete(&oper_list, target_p)))
115 <              free_dlink_node(dm);
114 >            if ((node = dlinkFindDelete(&oper_list, target_p)))
115 >              free_dlink_node(node);
116            }
117          }
118  
# Line 151 | Line 151 | ms_svsmode(struct Client *source_p, int
151    }
152  
153    if (extarg)
154 <    sendto_server(source_p, NOCAPS, NOCAPS, ":%s SVSMODE %s %lu %s %s",
154 >    sendto_server(source_p, 0, 0, ":%s SVSMODE %s %lu %s %s",
155                    source_p->id,
156                    target_p->id, (unsigned long)target_p->tsinfo, modes, extarg);
157    else
158 <    sendto_server(source_p, NOCAPS, NOCAPS, ":%s SVSMODE %s %lu %s",
158 >    sendto_server(source_p, 0, 0, ":%s SVSMODE %s %lu %s",
159                    source_p->id,
160                    target_p->id, (unsigned long)target_p->tsinfo, modes);
161  
# Line 171 | Line 171 | ms_svsmode(struct Client *source_p, int
171  
172   static struct Message svsmode_msgtab =
173   {
174 <  "SVSMODE", 0, 0, 4, MAXPARA, MFLG_SLOW, 0,
174 >  "SVSMODE", NULL, 0, 0, 4, MAXPARA, MFLG_SLOW, 0,
175    { m_ignore, m_ignore, ms_svsmode, m_ignore, m_ignore, m_ignore }
176   };
177  

Diff Legend

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