]> git.sommitrealweird.co.uk Git - twirssi-net-twitter-lite.git/commitdiff
Add the Search role, so that subscriptions will work again
authorDan Boger <zigdon@irc.peeron.com>
Wed, 27 Jan 2010 23:14:02 +0000 (15:14 -0800)
committerDan Boger <zigdon@irc.peeron.com>
Wed, 27 Jan 2010 23:14:02 +0000 (15:14 -0800)
twirssi.pl

index b0e31068fd04a20f3b94ed057cf33068c71f81b1..c133378cf92f23aeefcd8aac4f9f72e9c292c8a6 100644 (file)
@@ -518,13 +518,13 @@ sub cmd_login {
             {
                 $twit = Net::Twitter->new(
                     identica => 1,
-                    traits   => [ 'API::REST' ],
+                    traits   => [ 'API::REST', 'API::Search' ],
                     source   => "twirssi",
                     ssl      => !Irssi::settings_get_bool("twirssi_avoid_ssl"),
                 );
             } else {
                 $twit = Net::Twitter->new(
-                    traits       => [ 'API::REST', 'OAuth' ],
+                    traits       => [ 'API::REST', 'OAuth', 'API::Search' ],
                     consumer_key => 'BZVAvBma4GxdiRwXIvbnw',
                     consumer_secret =>
                       '0T5kahwLyb34vciGZsgkA9lsjtGCQ05vxVE2APXM',