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

Comparing ircd-hybrid/trunk/src/s_user.c (file contents):
Revision 2314 by michael, Fri Jun 21 12:50:33 2013 UTC vs.
Revision 2345 by michael, Wed Jul 3 18:17:39 2013 UTC

# Line 64 | Line 64 | static const char *uid_get(void);
64   * used with init_isupport, add_isupport, delete_isupport
65   */
66  
67 < struct Isupport
67 > struct Isupport
68   {
69    dlink_node node;
70    char *name;
# Line 109 | Line 109 | const unsigned int user_modes[256] =
109    0,                  /* X */
110    0,                  /* Y */
111    0,                  /* Z 0x5A */
112 <  0, 0, 0, 0, 0,      /* 0x5F   */
112 >  0, 0, 0, 0, 0,      /* 0x5F   */
113    0,                  /* 0x60   */
114    UMODE_ADMIN,        /* a */
115    UMODE_BOTS,         /* b */
# Line 169 | Line 169 | assemble_umode_buffer(void)
169   * side effects - display to client user counts etc.
170   */
171   void
172 < show_lusers(struct Client *source_p)
172 > show_lusers(struct Client *source_p)
173   {
174    const char *from, *to;
175  
# Line 215 | Line 215 | show_lusers(struct Client *source_p)
215    {
216      sendto_one(source_p, form_str(RPL_LUSERME),
217                 from, to, Count.total, 0);
218 <    sendto_one(source_p, form_str(RPL_LOCALUSERS),
218 >    sendto_one(source_p, form_str(RPL_LOCALUSERS),
219                 from, to, Count.total, Count.max_tot);
220    }
221  
# Line 230 | Line 230 | show_lusers(struct Client *source_p)
230      Count.max_loc_cli = Count.local;
231  
232    if ((Count.local + Count.myserver) > Count.max_loc_con)
233 <    Count.max_loc_con = Count.local + Count.myserver;
233 >    Count.max_loc_con = Count.local + Count.myserver;
234   }
235  
236   /* show_isupport()
# Line 240 | Line 240 | show_lusers(struct Client *source_p)
240   * side effects - display to client what we support (for them)
241   */
242   void
243 < show_isupport(struct Client *source_p)
243 > show_isupport(struct Client *source_p)
244   {
245    const dlink_node *ptr = NULL;
246  
# Line 484 | Line 484 | register_remote_user(struct Client *sour
484    assert(source_p != NULL);
485    assert(source_p->username != username);
486  
487 <  strlcpy(source_p->host, host, sizeof(source_p->host));
487 >  strlcpy(source_p->host, host, sizeof(source_p->host));
488    strlcpy(source_p->username, username, sizeof(source_p->username));
489  
490    /*
# Line 872 | Line 872 | set_user_mode(struct Client *client_p, s
872            }
873            else
874            {
875            /* Only decrement the oper counts if an oper to begin with
876             * found by Pat Szuta, Perly , perly@xnet.com
877             */
875              if (!HasUMode(source_p, UMODE_OPER))
876                break;
877  
# Line 1158 | Line 1155 | user_welcome(struct Client *source_p)
1155    }
1156   #endif
1157  
1158 <  sendto_one(source_p, form_str(RPL_WELCOME), me.name, source_p->name,
1158 >  sendto_one(source_p, form_str(RPL_WELCOME), me.name, source_p->name,
1159               ServerInfo.network_name, source_p->name);
1160    sendto_one(source_p, form_str(RPL_YOURHOST), me.name, source_p->name,
1161               get_listener_name(source_p->localClient->listener), ircd_version);
# Line 1217 | Line 1214 | check_xline(struct Client *source_p)
1214   * output       - NONE
1215   * side effects - Blindly opers up given source_p, using conf info
1216   *                all checks on passwords have already been done.
1217 < *                This could also be used by rsa oper routines.
1217 > *                This could also be used by rsa oper routines.
1218   */
1219   void
1220   oper_up(struct Client *source_p)
# Line 1269 | Line 1266 | valid_sid(const char *sid)
1266  
1267   /*
1268   * init_uid()
1269 < *
1269 > *
1270   * inputs       - NONE
1271   * output       - NONE
1272   * side effects - new_uid is filled in with server id portion (sid)
# Line 1287 | Line 1284 | init_uid(void)
1284      strlcpy(new_uid, ServerInfo.sid, sizeof(new_uid));
1285  
1286    for (i = 0; i < IRC_MAXSID; ++i)
1287 <    if (new_uid[i] == '\0')
1287 >    if (new_uid[i] == '\0')
1288        new_uid[i] = 'A';
1289  
1290    /* NOTE: if IRC_MAXUID != 6, this will have to be rewritten */

Diff Legend

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