Changeset 3474

Show
Ignore:
Timestamp:
12/19/06 23:15:00 (2 years ago)
Author:
timothy
Message:

/topic without arguments will now toggle the topic bar. To request the current topic if you are using a bouncer that dosen't forward the current topic, use /raw topic. #946

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plug-Ins/Standard Commands/JVStandardCommands.m

    r3418 r3474  
    8383                } else if( ! [command caseInsensitiveCompare:@"topic"] || ! [command caseInsensitiveCompare:@"t"] ) { 
    8484                        if( ! [arguments length] && [connection type] == MVChatConnectionIRCType ) { 
    85                                 // request the current topic, this is handy if you connect with a proxy that doesn't forward the current topic 
    86                                 [connection sendRawMessage:[NSString stringWithFormat:@"TOPIC %@", [[room target] name]]]; 
     85                                [[[room display] windowScriptObject] callWebScriptMethod:@"toggleTopic" withArguments:nil]; 
    8786                                return YES; 
    8887                        } else if( [arguments length] ) { 
  • trunk/Resources/roomTopicBanner.js

    r3454 r3474  
    33 
    44function toggleTopic( e ) { 
    5         if( e.altKey ) { 
     5        if( e && e.altKey ) { 
    66                topicSize++; 
    77                if( topicSize > 3 ) topicSize = 0;