summaryrefslogtreecommitdiff
path: root/.irssi
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2009-12-29 11:53:11 -0500
committerMike Crute <mike@crute.us>2009-12-29 11:53:11 -0500
commit02036d6dce722fcfbbcdfbc7e71be766bd00e374 (patch)
tree32012ed51a27bced6c169d715c556f27e3a2265c /.irssi
parentd8b18865b69b1d823583751b4754d83e38b4ae27 (diff)
downloaddotfiles-02036d6dce722fcfbbcdfbc7e71be766bd00e374.tar.bz2
dotfiles-02036d6dce722fcfbbcdfbc7e71be766bd00e374.tar.xz
dotfiles-02036d6dce722fcfbbcdfbc7e71be766bd00e374.zip
Updating with latest configs from work
Diffstat (limited to '.irssi')
-rw-r--r--.irssi/config.clean139
l---------.irssi/scripts/autorun/adv_windowlist.pl1
l---------.irssi/scripts/autorun/twirssi.pl1
-rw-r--r--.irssi/scripts/twirssi.pl33
4 files changed, 151 insertions, 23 deletions
diff --git a/.irssi/config.clean b/.irssi/config.clean
index 146c678..1054b17 100644
--- a/.irssi/config.clean
+++ b/.irssi/config.clean
@@ -16,6 +16,16 @@ servers = (
16 port = "5223"; 16 port = "5223";
17 use_ssl = "yes"; 17 use_ssl = "yes";
18 autoconnect = "yes"; 18 autoconnect = "yes";
19 jid = "mcrute@chat.ops.ag.com";
20 password = "[REDACTED]";
21 },
22 {
23 address = "talk.google.com";
24 chatnet = "Gmail";
25 port = "5223";
26 use_ssl = "yes";
27 autoconnect = "yes";
28 jid = "mcrute@gmail.com";
19 password = "[REDACTED]"; 29 password = "[REDACTED]";
20 } 30 }
21); 31);
@@ -23,10 +33,16 @@ servers = (
23chatnets = { 33chatnets = {
24 FreeNode = { 34 FreeNode = {
25 type = "IRC"; 35 type = "IRC";
26 autosendcmd = "/^msg nickserv identify [REDACTED];wait 2000"; 36 nick = "cruteme";
37 autosendcmd = "/msg nickserv identify [REDACTED];wait 2000";
27 }; 38 };
28 AIM = { type = "IRC"; }; 39 AIM = {
29 AGJabber = { type = "XMPP"; nick = "mcrute@chat.ops.ag.com"; }; 40 type = "IRC";
41 nick = "cruteme";
42 autosendcmd = "/msg root identify [REDACTED];wait 2000";
43 };
44 AGJabber = { type = "XMPP"; nick = "mcrute"; };
45 Gmail = { type = "XMPP"; nick = "mcrute"; };
30}; 46};
31 47
32channels = ( 48channels = (
@@ -118,6 +134,7 @@ aliases = {
118 "MANUAL-WINDOWS" = "set use_status_window off;set autocreate_windows off;set autocreate_query_level none;set autoclose_windows off;set reuse_unused_windows on;save"; 134 "MANUAL-WINDOWS" = "set use_status_window off;set autocreate_windows off;set autocreate_query_level none;set autoclose_windows off;set reuse_unused_windows on;save";
119 EXEMPTLIST = "mode $C +e"; 135 EXEMPTLIST = "mode $C +e";
120 ATAG = "WINDOW SERVER"; 136 ATAG = "WINDOW SERVER";
137 tu = "twitter_update";
121}; 138};
122 139
123statusbar = { 140statusbar = {
@@ -233,10 +250,14 @@ statusbar = {
233 awl_0 = { 250 awl_0 = {
234 items = { 251 items = {
235 barstart = { priority = "100"; }; 252 barstart = { priority = "100"; };
236 user = { };
237 awl_0 = { }; 253 awl_0 = { };
238 act = { priority = "10"; }; 254 barend = { priority = "100"; alignment = "right"; };
239 lag = { }; 255 };
256 };
257 awl_1 = {
258 items = {
259 barstart = { priority = "100"; };
260 awl_1 = { };
240 barend = { priority = "100"; alignment = "right"; }; 261 barend = { priority = "100"; alignment = "right"; };
241 }; 262 };
242 }; 263 };
@@ -256,9 +277,111 @@ settings = {
256 "irc/core" = { channels_rejoin_unavailable = "yes"; }; 277 "irc/core" = { channels_rejoin_unavailable = "yes"; };
257 "perl/core/scripts" = { 278 "perl/core/scripts" = {
258 awl_display_key = "$Q%K|%n$H$C$S"; 279 awl_display_key = "$Q%K|%n$H$C$S";
259 awl_block = "0";
260 twirssi_first_run = "no";
261 awl_prefer_name = "yes"; 280 awl_prefer_name = "yes";
281 twirssi_first_run = "no";
282 twitter_poll_interval = "60";
262 }; 283 };
263}; 284};
264logs = { }; 285logs = { };
286windows = {
287 1 = { immortal = "yes"; name = "(status)"; level = "ALL"; };
288 2 = {
289 items = (
290 {
291 type = "CHANNEL";
292 chat_type = "IRC";
293 name = "&bitlbee";
294 tag = "AIM";
295 }
296 );
297 };
298 3 = {
299 name = "tech";
300 items = (
301 {
302 type = "CHANNEL";
303 chat_type = "XMPP";
304 name = "no-bs@conference.chat.ops.ag.com";
305 tag = "AGJabber";
306 }
307 );
308 };
309 4 = {
310 name = "opshelp";
311 items = (
312 {
313 type = "CHANNEL";
314 chat_type = "XMPP";
315 name = "opshelp@conference.chat.ops.ag.com";
316 tag = "AGJabber";
317 }
318 );
319 };
320 5 = {
321 name = "testing";
322 items = (
323 {
324 type = "CHANNEL";
325 chat_type = "XMPP";
326 name = "testing@conference.chat.ops.ag.com";
327 tag = "AGJabber";
328 }
329 );
330 };
331 6 = {
332 name = "opensource";
333 items = (
334 {
335 type = "CHANNEL";
336 chat_type = "XMPP";
337 name = "opensource@conference.chat.ops.ag.com";
338 tag = "AGJabber";
339 }
340 );
341 };
342 7 = {
343 name = "ag";
344 items = (
345 {
346 type = "CHANNEL";
347 chat_type = "XMPP";
348 name = "ag@conference.chat.ops.ag.com";
349 tag = "AGJabber";
350 }
351 );
352 };
353 8 = {
354 name = "content";
355 items = (
356 {
357 type = "CHANNEL";
358 chat_type = "XMPP";
359 name = "content@conference.chat.ops.ag.com";
360 tag = "AGJabber";
361 }
362 );
363 };
364 9 = {
365 name = "endeca";
366 items = (
367 {
368 type = "CHANNEL";
369 chat_type = "XMPP";
370 name = "endeca@conference.chat.ops.ag.com";
371 tag = "AGJabber";
372 }
373 );
374 };
375 10 = {
376 name = "photoworks";
377 items = (
378 {
379 type = "CHANNEL";
380 chat_type = "XMPP";
381 name = "focus@conference.chat.ops.ag.com";
382 tag = "AGJabber";
383 }
384 );
385 };
386};
387mainwindows = { 4 = { first_line = "1"; lines = "43"; }; };
diff --git a/.irssi/scripts/autorun/adv_windowlist.pl b/.irssi/scripts/autorun/adv_windowlist.pl
new file mode 120000
index 0000000..d210a5c
--- /dev/null
+++ b/.irssi/scripts/autorun/adv_windowlist.pl
@@ -0,0 +1 @@
../adv_windowlist.pl \ No newline at end of file
diff --git a/.irssi/scripts/autorun/twirssi.pl b/.irssi/scripts/autorun/twirssi.pl
deleted file mode 120000
index 5722034..0000000
--- a/.irssi/scripts/autorun/twirssi.pl
+++ /dev/null
@@ -1 +0,0 @@
1../twirssi.pl \ No newline at end of file
diff --git a/.irssi/scripts/twirssi.pl b/.irssi/scripts/twirssi.pl
index 12bfad7..813aeb1 100644
--- a/.irssi/scripts/twirssi.pl
+++ b/.irssi/scripts/twirssi.pl
@@ -11,7 +11,7 @@ $Data::Dumper::Indent = 1;
11 11
12use vars qw($VERSION %IRSSI); 12use vars qw($VERSION %IRSSI);
13 13
14$VERSION = "2.3.0"; 14$VERSION = "2.3.3";
15%IRSSI = ( 15%IRSSI = (
16 authors => 'Dan Boger', 16 authors => 'Dan Boger',
17 contact => 'zigdon@gmail.com', 17 contact => 'zigdon@gmail.com',
@@ -175,25 +175,29 @@ sub cmd_retweet_as {
175 } 175 }
176 $text =~ s/\$t/$id_map{__tweets}{ lc $nick }[$id]/; 176 $text =~ s/\$t/$id_map{__tweets}{ lc $nick }[$id]/;
177 177
178 my $modified = $data;
178 $data = &shorten($text); 179 $data = &shorten($text);
179 180
180 return if &too_long($data); 181 return if &too_long($data);
181 182
182 my $success = 1; 183 my $success = 1;
183 eval { 184 eval {
184 unless ( 185 if ($modified) {
185 $twits{$username}->update( 186 $success = $twits{$username}->update(
186 { 187 {
187 status => $data, 188 status => $data,
188 189
189 # in_reply_to_status_id => $id_map{ lc $nick }[$id] 190 # in_reply_to_status_id => $id_map{ lc $nick }[$id]
190 } 191 }
191 ) 192 )
192 ) 193 } else {
193 { 194 $success = $twits{$username}->retweet(
194 &notice("Update failed"); 195 {
195 $success = 0; 196 id => $id_map{ lc $nick }[$id]
197 }
198 )
196 } 199 }
200 &notice("Update failed") unless $success;
197 }; 201 };
198 return unless $success; 202 return unless $success;
199 203
@@ -490,7 +494,7 @@ sub cmd_login {
490 } 494 }
491 $defservice = $service = ucfirst lc $service; 495 $defservice = $service = ucfirst lc $service;
492 496
493 eval "use Net::$service"; 497 eval "use Net::$service 3.05";
494 if ($@) { 498 if ($@) {
495 &notice( 499 &notice(
496 "Failed to load Net::$service when trying to log in as $user: $@"); 500 "Failed to load Net::$service when trying to log in as $user: $@");
@@ -513,6 +517,7 @@ sub cmd_login {
513 and $twit->can('ua') ) 517 and $twit->can('ua') )
514 { 518 {
515 $twit->ua->timeout($timeout); 519 $twit->ua->timeout($timeout);
520 &notice("Twitter timeout set to $timeout");
516 } 521 }
517 522
518 unless ( $twit->verify_credentials() ) { 523 unless ( $twit->verify_credentials() ) {
@@ -935,14 +940,14 @@ sub do_updates {
935 eval { 940 eval {
936 if ( $id_map{__last_id}{$username}{timeline} ) 941 if ( $id_map{__last_id}{$username}{timeline} )
937 { 942 {
938 $tweets = $obj->friends_timeline( { count => 100 } ); 943 $tweets = $obj->home_timeline( { count => 100 } );
939 } else { 944 } else {
940 $tweets = $obj->friends_timeline(); 945 $tweets = $obj->home_timeline();
941 } 946 }
942 }; 947 };
943 948
944 if ($@) { 949 if ($@) {
945 print $fh "type:debug Error during friends_timeline call: Aborted.\n"; 950 print $fh "type:debug Error during home_timeline call: Aborted.\n";
946 print $fh "type:debug : $_\n" foreach split /\n/, Dumper($@); 951 print $fh "type:debug : $_\n" foreach split /\n/, Dumper($@);
947 return undef; 952 return undef;
948 } 953 }
@@ -953,12 +958,12 @@ sub do_updates {
953 eval { $error = JSON::Any->jsonToObj( $obj->get_error() ) }; 958 eval { $error = JSON::Any->jsonToObj( $obj->get_error() ) };
954 unless ($@) { $error = $obj->get_error() } 959 unless ($@) { $error = $obj->get_error() }
955 print $fh 960 print $fh
956 "type:debug API Error during friends_timeline call: Aborted\n"; 961 "type:debug API Error during home_timeline call: Aborted\n";
957 print $fh "type:debug : $_\n" foreach split /\n/, Dumper($error); 962 print $fh "type:debug : $_\n" foreach split /\n/, Dumper($error);
958 963
959 } else { 964 } else {
960 print $fh 965 print $fh
961 "type:debug API Error during friends_timeline call. Aborted.\n"; 966 "type:debug API Error during home_timeline call. Aborted.\n";
962 } 967 }
963 return undef; 968 return undef;
964 } 969 }
@@ -1602,7 +1607,7 @@ sub hilight {
1602 if ( Irssi::settings_get_str("twirssi_nick_color") ) { 1607 if ( Irssi::settings_get_str("twirssi_nick_color") ) {
1603 my $c = Irssi::settings_get_str("twirssi_nick_color"); 1608 my $c = Irssi::settings_get_str("twirssi_nick_color");
1604 $c = $irssi_to_mirc_colors{$c}; 1609 $c = $irssi_to_mirc_colors{$c};
1605 $text =~ s/(^|\W)\@([-\w]+)/$1\cC$c\@$2\cO/g if $c; 1610 $text =~ s/(^|\W)\@(\w+)/$1\cC$c\@$2\cO/g if $c;
1606 } 1611 }
1607 if ( Irssi::settings_get_str("twirssi_topic_color") ) { 1612 if ( Irssi::settings_get_str("twirssi_topic_color") ) {
1608 my $c = Irssi::settings_get_str("twirssi_topic_color"); 1613 my $c = Irssi::settings_get_str("twirssi_topic_color");