aMSN Forums
May 22, 2013, 01:42:11 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Little SayIt patch  (Read 4037 times)
Abesto
Newbie

Offline Offline

Posts: 12


View Profile WWW
« on: August 25, 2007, 01:51:01 pm »

Hi
I've downloaded SayIt from SVN, but the junkfilter didn't seem to work. There were two problems. First (at least for me) it failed to fetch the emoticons. Second, when I fixed that, it removed smileys only when they were separated with spaces on both sides (due to the messages being treated as lists).
Here are the changes I applied to sayit.tcl. There's probably a way to read the emoticons directly from aMSN instead of hardcoding them, but I'm not fluent in TCL/TK yet.

Code:
# junkfilter
#
# remove smileys
                        set smileys [list ":P" ":O" ":S" ";P" ":D" "=P" "=O" "=S" "=D" ":8" ":)" ":(" ";)" ":'("]
if { ($config(junkfilter)) } {
foreach smiley $smileys {
        set msg [string map [list $smiley {}] $msg]                  
}
}
                        # Some Hungarian specific MSN shorthands
                        set msg [string map [list vhol valahol vmi valamit vki valaki vmikor valamikor " h " " hogy " tom tudom vok vagyok hhogy hogy-hogy sztem szerintem szted szerinted] $msg]
                        set msg [string map [list " h " " hogy "] $msg]


Regards

EDIT: The idea to hard-code the smileys isn't mine, I've found it at http://osdir.com/ml/network.instant-messaging.amsn.devel/2006-01/msg00138.html
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #1 on: August 26, 2007, 07:13:32 am »

moved to plugin section.. let's hope the author will see this and apply it...

p.s.: use
Code:
svn diff
for providing a patch...
Logged

KaKaRoTo
Abesto
Newbie

Offline Offline

Posts: 12


View Profile WWW
« Reply #2 on: August 26, 2007, 08:37:20 am »

Will do, and sorry for posting in the wrong place
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!