Re: [Fire-commits] fire/irc ircService.m,1.60,1.61

Alan Humpherys <[email protected]> Mon, 29 Mar 2004 22:28:16 -0700
Newsgroups gmane.network.fire.devel
Message-ID <[email protected]>
There is already code to detect and handle /me actions in MessageItem  
(the IRC service callout)

Did that stop working!
Alan
On Mar 29, 2004, at 8:55 PM, [email protected] wrote:

> Update of /cvsroot/fire/fire/irc
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30336
>
> Modified Files:
> 	ircService.m
> Log Message:
> Simple fix to make actions work properly on IRC.  The things you 
> discover when you use the irc service to test display of things (since 
> I can run my own irc server that I can cycle if I log into it too 
> often).
>
>
>
> Index: ircService.m
> ===================================================================
> RCS file: /cvsroot/fire/fire/irc/ircService.m,v
> retrieving revision 1.60
> retrieving revision 1.61
> diff -C2 -d -r1.60 -r1.61
> *** ircService.m	14 Mar 2004 11:53:00 -0000	1.60
> --- ircService.m	30 Mar 2004 03:55:31 -0000	1.61
> ***************
> *** 208,212 ****
>   - (NSString *)encodeMessageAttributes:(MessageItem *)msg
>   {
> !     return [[msg attributedMessage] getIRCHTML];
>   }
>
> --- 208,218 ----
>   - (NSString *)encodeMessageAttributes:(MessageItem *)msg
>   {
> !     NSMutableAttributedString *attributedMessage = [msg 
> attributedMessage];
> !
> !     if([[attributedMessage string] hasPrefix:@"/me "]){
> !         [msg setMessageType:MI_ACTION_MESSAGE];
> !         [attributedMessage deleteCharactersInRange:NSMakeRange(0, 
> 4)];
> !     }
> !     return [attributedMessage getIRCHTML];
>   }
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Fire-commits mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fire-commits



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click