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

Comparing ircd-hybrid-7.2/modules/m_away.c (file contents):
Revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
Revision 885 by michael, Wed Oct 31 18:09:24 2007 UTC

# Line 97 | Line 97 | m_away(struct Client *client_p, struct C
97      if (cur_away_msg)
98      {
99        /* we now send this only if they were away before --is */
100 <      sendto_server(client_p, source_p, NULL, CAP_TS6, NOCAPS,
101 <                    NOFLAGS, ":%s AWAY", ID(source_p));
102 <      sendto_server(client_p, source_p, NULL, NOCAPS, CAP_TS6,
103 <                    NOFLAGS, ":%s AWAY", source_p->name);
100 >      sendto_server(client_p, NULL, CAP_TS6, NOCAPS,
101 >                    ":%s AWAY", ID(source_p));
102 >      sendto_server(client_p, NULL, NOCAPS, CAP_TS6,
103 >                    ":%s AWAY", source_p->name);
104  
105        MyFree(cur_away_msg);
106        source_p->away = NULL;
# Line 132 | Line 132 | m_away(struct Client *client_p, struct C
132     * weren't away already --is */
133    if (!cur_away_msg)
134    {
135 <    sendto_server(client_p, source_p, NULL, CAP_TS6, NOCAPS,
136 <                  NOFLAGS, ":%s AWAY :%s", ID(source_p), new_away_msg);
137 <    sendto_server(client_p, source_p, NULL, NOCAPS, CAP_TS6,
138 <                  NOFLAGS, ":%s AWAY :%s", source_p->name, new_away_msg);
135 >    sendto_server(client_p, NULL, CAP_TS6, NOCAPS,
136 >                  ":%s AWAY :%s", ID(source_p), new_away_msg);
137 >    sendto_server(client_p, NULL, NOCAPS, CAP_TS6,
138 >                  ":%s AWAY :%s", source_p->name, new_away_msg);
139    }
140    else
141      MyFree(cur_away_msg);
# Line 164 | Line 164 | mo_away(struct Client *client_p, struct
164      if (cur_away_msg)
165      {
166        /* we now send this only if they were away before --is */
167 <      sendto_server(client_p, source_p, NULL, CAP_TS6, NOCAPS,
168 <                    NOFLAGS, ":%s AWAY", ID(source_p));
169 <      sendto_server(client_p, source_p, NULL, NOCAPS, CAP_TS6,
170 <                    NOFLAGS, ":%s AWAY", source_p->name);
167 >      sendto_server(client_p, NULL, CAP_TS6, NOCAPS,
168 >                    ":%s AWAY", ID(source_p));
169 >      sendto_server(client_p, NULL, NOCAPS, CAP_TS6,
170 >                    ":%s AWAY", source_p->name);
171  
172        MyFree(cur_away_msg);
173        source_p->away = NULL;
# Line 190 | Line 190 | mo_away(struct Client *client_p, struct
190     * weren't away already --is */
191    if (!cur_away_msg)
192    {
193 <    sendto_server(client_p, source_p, NULL, CAP_TS6, NOCAPS,
194 <                  NOFLAGS, ":%s AWAY :%s", ID(source_p), new_away_msg);
195 <    sendto_server(client_p, source_p, NULL, NOCAPS, CAP_TS6,
196 <                  NOFLAGS, ":%s AWAY :%s", source_p->name, new_away_msg);
193 >    sendto_server(client_p, NULL, CAP_TS6, NOCAPS,
194 >                  ":%s AWAY :%s", ID(source_p), new_away_msg);
195 >    sendto_server(client_p, NULL, NOCAPS, CAP_TS6,
196 >                  ":%s AWAY :%s", source_p->name, new_away_msg);
197    }
198    else
199      MyFree(cur_away_msg);
# Line 224 | Line 224 | ms_away(struct Client *client_p, struct
224      if (cur_away_msg)
225      {
226        /* we now send this only if they were away before --is */
227 <      sendto_server(client_p, source_p, NULL, CAP_TS6, NOCAPS,
228 <                    NOFLAGS, ":%s AWAY", ID(source_p));
229 <      sendto_server(client_p, source_p, NULL, NOCAPS, CAP_TS6,
230 <                    NOFLAGS, ":%s AWAY", source_p->name);
227 >      sendto_server(client_p, NULL, CAP_TS6, NOCAPS,
228 >                    ":%s AWAY", ID(source_p));
229 >      sendto_server(client_p, NULL, NOCAPS, CAP_TS6,
230 >                    ":%s AWAY", source_p->name);
231  
232        MyFree(cur_away_msg);
233        source_p->away = NULL;
# Line 248 | Line 248 | ms_away(struct Client *client_p, struct
248     * weren't away already --is */
249    if (!cur_away_msg)
250    {
251 <    sendto_server(client_p, source_p, NULL, CAP_TS6, NOCAPS,
252 <                  NOFLAGS, ":%s AWAY :%s", ID(source_p), new_away_msg);
253 <    sendto_server(client_p, source_p, NULL, NOCAPS, CAP_TS6,
254 <                  NOFLAGS, ":%s AWAY :%s", source_p->name, new_away_msg);
251 >    sendto_server(client_p, NULL, CAP_TS6, NOCAPS,
252 >                  ":%s AWAY :%s", ID(source_p), new_away_msg);
253 >    sendto_server(client_p, NULL, NOCAPS, CAP_TS6,
254 >                  ":%s AWAY :%s", source_p->name, new_away_msg);
255    }
256    else
257      MyFree(cur_away_msg);

Diff Legend

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