PennMUSH Community

Changeset 1225

Show
Ignore:
Timestamp:
03/07/08 02:05:14 (9 months ago)
Author:
shawnw
Message:

#7570: @chan/title foo display channel title

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/CHANGES.183

    r1224 r1225  
    4040   @ps. [Rhost] 
    4141 * @wait/pid will adjust the wait time of queue entries. [Rhost] 
     42 * @chan/title <channel> will display your current channel title.  
     43   @chan/title <channel>= will clear it. Patch by Talvo, suggested by 
     44   Ender. 
    4245 
    4346Functions: 
  • 1.8.3/branches/devel/game/txt/hlp/pennchat.hlp

    r1008 r1225  
    155155  @channel/who <channel> 
    156156  @channel/hide <channel> = <yes|no> 
    157   @channel/title <channel> = <string> 
     157  @channel/title <channel>[=<string>] 
    158158 
    159159  The @channel/who command shows you who is currently on a channel, 
     
    166166 
    167167  @channel/title lets you set a title to appear before your name 
    168   when you speak on the channel. If you leave the channel, your 
    169   title is cleared; use @channel/gag instead (see help @channel3). 
    170   You should escape any commas in your title with backslashes. 
     168  when you speak on the channel, or check your current title. If 
     169  you leave the channel, your title is cleared; use @channel/gag 
     170  instead (see help @channel3). You should escape any commas in 
     171  your title with backslashes. 
    171172 
    172173  See "help @channel3" for more. 
  • 1.8.3/branches/devel/src/extchat.c

    r1150 r1225  
    102102 
    103103CHAN *channels;    /**< Pointer to channel list */ 
     104 
     105extern int rhs_present; /* from command.c */ 
    104106 
    105107static PRIV priv_table[] = { 
     
    20272029    return; 
    20282030  } 
     2031   
     2032  test_channel(player, name, c); 
     2033  u = onchannel(player, c); 
     2034  if (!u) { 
     2035    notify_format(player, T("You are not on channel <%s>."), ChanName(c)); 
     2036    return; 
     2037  } 
     2038   
     2039  if (!rhs_present) { 
     2040      if (strlen(CUtitle(u)) == 0)  
     2041        notify_format(player, T("You have no title set on <%s>."), ChanName(c)); 
     2042      else 
     2043        notify_format(player, T("Your title on <%s> is '%s'."), ChanName(c), CUtitle(u)); 
     2044      return; 
     2045  } 
     2046   
    20292047  if (!title) 
    20302048    title = (const char *) ""; 
     
    20422060    } 
    20432061  } 
    2044   test_channel(player, name, c); 
    2045   u = onchannel(player, c); 
    2046   if (!u) { 
    2047     notify_format(player, T("You are not on channel <%s>."), ChanName(c)); 
    2048     return; 
    2049   } 
     2062 
    20502063  strcpy(CUtitle(u), title); 
    20512064  if (!Quiet(player))