]> jfr.im git - solanum.git/commitdiff
More TS6 special cases simplified.
authorWilliam Pitcock <redacted>
Sun, 8 Jun 2008 07:16:43 +0000 (02:16 -0500)
committerWilliam Pitcock <redacted>
Sun, 8 Jun 2008 07:16:43 +0000 (02:16 -0500)
src/channel.c

index c77e02d3a14487ea656e3af3ac3e0048ced2c172..e7d610af6c00c62a562010ace6b293aeab98e4cb 100644 (file)
@@ -1295,13 +1295,9 @@ send_cap_mode_changes(struct Client *client_p, struct Client *source_p,
                cap = chcap_combos[j].cap_yes;
                nocap = chcap_combos[j].cap_no;
 
-               if(cap & CAP_TS6)
-                       mbl = preflen = rb_sprintf(modebuf, ":%s TMODE %ld %s ",
-                                                  use_id(source_p), (long) chptr->channelts,
-                                                  chptr->chname);
-               else
-                       mbl = preflen = rb_sprintf(modebuf, ":%s MODE %s ",
-                                                  source_p->name, chptr->chname);
+               mbl = preflen = rb_sprintf(modebuf, ":%s TMODE %ld %s ",
+                                          use_id(source_p), (long) chptr->channelts,
+                                          chptr->chname);
 
                /* loop the list of - modes we have */
                for (i = 0; i < mode_count; i++)
@@ -1315,10 +1311,7 @@ send_cap_mode_changes(struct Client *client_p, struct Client *source_p,
                           || ((nocap & mode_changes[i].nocaps) != mode_changes[i].nocaps))
                                continue;
 
-                       if((cap & CAP_TS6) && !EmptyString(mode_changes[i].id))
-                               arg = mode_changes[i].id;
-                       else
-                               arg = mode_changes[i].arg;
+                       arg = mode_changes[i].id;
 
                        if(arg)
                        {