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

Comparing ircd-hybrid/trunk/src/s_user.c (file contents):
Revision 2231 by michael, Thu Jun 13 20:29:59 2013 UTC vs.
Revision 2246 by michael, Sun Jun 16 10:48:39 2013 UTC

# Line 101 | Line 101 | const unsigned int user_modes[256] =
101    0,                  /* P */
102    0,                  /* Q */
103    UMODE_REGONLY,      /* R */
104 <  0,                  /* S */
104 >  UMODE_SSL,          /* S */
105    0,                  /* T */
106    0,                  /* U */
107    0,                  /* V */
# Line 895 | Line 895 | set_user_mode(struct Client *client_p, s
895  
896            break;
897  
898 +        case 'S':  /* Only servers may set +S in a burst */
899          case 'r':  /* Only services may set +r */
900          case 'x':  /* Only services may set +x */
901            break;
# Line 1143 | Line 1144 | user_welcome(struct Client *source_p)
1144   #endif
1145  
1146   #ifdef HAVE_LIBCRYPTO
1147 <  if (source_p->localClient->fd.ssl != NULL)
1147 >  if (HasFlag(source_p, FLAGS_SSL))
1148 >  {
1149 >    AddUMode(source_p, UMODE_SSL);
1150      sendto_one(source_p, ":%s NOTICE %s :*** Connected securely via %s",
1151                 me.name, source_p->name,
1152                 ssl_get_cipher(source_p->localClient->fd.ssl));
1153 +  }
1154   #endif
1155  
1156    sendto_one(source_p, form_str(RPL_WELCOME), me.name, source_p->name,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines