Page MenuHomeDevCentral

D1048.id2680.diff
No OneTemporary

D1048.id2680.diff

diff --git a/Daeghrefn/Communication.tcl b/Daeghrefn/Communication.tcl
--- a/Daeghrefn/Communication.tcl
+++ b/Daeghrefn/Communication.tcl
@@ -17,6 +17,12 @@
bind pub - !style pub:styleencyclo
#
+# Constants
+#
+
+set TWITTER_MESSAGE_LEN 280
+
+#
# SMS
#
@@ -347,13 +353,15 @@
}
proc twitterpublish {account nick text} {
+ global TWITTER_MESSAGE_LEN
+
if {$text == ""} {
putquick "NOTICE $nick :Syntaxe : !pub <texte à publier sur identi.ca et Twitter>"
return
}
set len [twitter_compute_len $text]
- if {$len > 140} {
- putquick "NOTICE $nick :140 caractères max, là il y en a $len ([twitter_get_short_url_length] par lien)."
+ if {$len > $TWITTER_MESSAGE_LEN} {
+ putquick "NOTICE $nick :$TWITTER_MESSAGE_LEN caractères max, là il y en a $len ([twitter_get_short_url_length] par lien)."
return
}
if [twitterpost $account $text] {

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 18:46 (8 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2310992
Default Alt Text
D1048.id2680.diff (879 B)

Event Timeline