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

Comparing ircd-hybrid/trunk/modules/m_invite.c (file contents):
Revision 1833 by michael, Fri Apr 19 19:16:09 2013 UTC vs.
Revision 1834 by michael, Fri Apr 19 19:50:27 2013 UTC

# Line 59 | Line 59 | m_invite(struct Client *client_p, struct
59  
60    if (EmptyString(parv[2]))
61    {
62 <    sendto_one(source_p, ERR_NEEDMOREPARAMS,
62 >    sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
63                 me.name, source_p->name, "INVITE");
64      return;
65    }
# Line 69 | Line 69 | m_invite(struct Client *client_p, struct
69  
70    if ((target_p = find_person(client_p, parv[1])) == NULL)
71    {
72 <    sendto_one(source_p, ERR_NOSUCHNICK,
72 >    sendto_one(source_p, form_str(ERR_NOSUCHNICK),
73                 me.name, source_p->name, parv[1]);
74      return;
75    }
76  
77    if ((chptr = hash_find_channel(parv[2])) == NULL)
78    {
79 <    sendto_one(source_p, ERR_NOSUCHCHANNEL,
79 >    sendto_one(source_p, form_str(ERR_NOSUCHCHANNEL),
80                 me.name, source_p->name, parv[2]);
81      return;
82    }
83  
84    if (MyConnect(source_p) && (ms = find_channel_link(source_p, chptr)) == NULL)
85    {
86 <    sendto_one(source_p, ERR_NOTONCHANNEL,
86 >    sendto_one(source_p, form_str(ERR_NOTONCHANNEL),
87                 me.name, source_p->name, chptr->chname);
88      return;
89    }
90  
91    if (MyConnect(source_p) && !has_member_flags(ms, CHFL_CHANOP))
92    {
93 <    sendto_one(source_p, ERR_CHANOPRIVSNEEDED,
93 >    sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
94                 me.name, source_p->name, chptr->chname);
95      return;
96    }
97  
98    if (IsMember(target_p, chptr))
99    {
100 <    sendto_one(source_p, ERR_USERONCHANNEL,
100 >    sendto_one(source_p, form_str(ERR_USERONCHANNEL),
101                 me.name, source_p->name, target_p->name, chptr->chname);
102      return;
103    }
104  
105    if (MyConnect(source_p))
106    {
107 <    sendto_one(source_p, RPL_INVITING, me.name,
107 >    sendto_one(source_p, form_str(RPL_INVITING), me.name,
108                 source_p->name, target_p->name, chptr->chname);
109  
110      if (target_p->away[0])
111 <      sendto_one(source_p, RPL_AWAY,
111 >      sendto_one(source_p, form_str(RPL_AWAY),
112                   me.name, source_p->name, target_p->name,
113                   target_p->away);
114    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines