Meta tags:
Headings (most frequently used words):
-
Text of the page (most frequently used words):
config (69), the (25), you (23), away (20), irssi (18), this (17), script_mode (17), debug (15), server (13), email (12), proxy (11), client (11), messages (11), that (11), and (10), are (10), text (10), when (9), send (9), nick (9), list (9), sub (9), data (9), script (8), for (8), from (8), use (8), connected (8), set (7), mode (7), line (7), mail (7), vim (6), module (6), time (6), only (6), awaymsglist (6), servers (6), back (5), clients (5), expansion (5), expansion_mode (5), clientcount (5), expansion_started (5), awaymsglist2 (5), print (5), irc (4), sets (4), reason (4), any (4), how (4), after (4), msgs (4), counting (4), sendmail (4), archive (4), usermode_away (4), target (4), emptied (4), run (4), push (4), signal_add_last (4), have (3), come (3), msg (3), life (3), com (3), version (3), added (3), many (3), there (3), can (3), irssi_proxy (3), your (3), current (3), where (3), got (3), emailto (3), make (3), address (3), check (3), check_interval (3), then (3), awayreason (3), caller (3), count (3), send_raw (3), mask (3), perl (2), below (2), who (2), new (2), connects (2), automatically (2), arent (2), allready (2), dont (2), bcow (2), anttip (2), patch (2), wulf (2), gives (2), ability (2), change (2), autoaway (2), away_level (2), changed (2), sends (2), system (2), based (2), get (2), name (2), seconds (2), setting (2), controls (2), pub (2), one (2), with (2), off (2), lines (2), expansion_timeout (2), domain (2), tld (2), sender (2), emailfrom (2), subject (2), emailsubject (2), disconnected (2), don (2), know (2), number (2), expansion_lines_count (2), timer (2), timeout_add (2), 1000 (2), msgsend_check (2), shift (2), send_mail (2), sending (2), client_connect (2), weird (2), all (2), client_disconnect (2), msg_pub (2), push_into_archive (2), simple (2), connect (2), expansion_chan (2), expansion_stop (2), msg_pri (2), message (2), syntax, tabstop, shiftwidth, foldmethod, marker, foldenable, enc, utf, warning, bad, english, designed, those, been, using, muh, bouncer, basicly, just, monitors, state, disconnects, other, hand, still, good, want, forward, while, box, usefull, forwarding, sms, gateway, btw, find, bugs, ideas, development, hesitate, ircnet, history, basic, functionality, user, parameter, control, before, disconnecting, already, means, isn, cumulated, fixes, bug, cummulated, weren, sent, code, cleanup, wrapping, standart, 80x24, console, modes, rid, crappy, setings, logging, capability, either, micro, fix, needed, default, values, non, existing, placeholder, respectively, planned, wanted, log, several, channels, once, strict, warnings, imports, vars, authors, contact, awayproxy, description, discconects, gathers, targeted, forwards, them, license, gplv2, url, http, www, much, amout, lets, say, will, allways, amount, under, records, include, start, expansion_lines, stop, gathering, operation, both, recipient, location, usr, sbin, thanx, auto, because, has, debugging, anything, recorded, small, timeouts, loop, timeout, checking, didn, grep, right, now, concentate, into, join, empty, finally, concentated, open, close, setback, foreach, yourself, contents, notify, self, huh, somewhat, but, someone, wants, would, really, appreciate, notices, notice, clear, awaymessage, disconnectted, unless, setaway, not, starting, expansion_time_out, stopping, priv, public, private,
Text of the page (random words):
vim syntax perl vim tabstop 4 vim shiftwidth 4 vim foldmethod marker vim foldenable vim enc utf 8 warning bad english below p this script is designed for those who have been using muh irc bouncer basicly this script just monitors the proxy module and if new client connects it sets you automatically back from away state and when client disconnects it sets you automatically away if you arent allready away other hand if you dont use irssi proxy you still have a good reason to use this if you want to forward messages that come to you while you are away to email box this is usefull for forwarding messages to an sms gateway btw if you find any bugs or have any ideas for development of this script dont hesitate to send msg to bcow ircnet or send email to anttip n0 life com version history 0 1 basic functionality 0 2b a patch from wulf that gives a user ability to change the autoaway reason added away_level parameter that gives you ability to control how many clients there can be connected to the irssi_proxy module before you are set away you arent set away when disconnecting from the irssi_proxy if you already are away this means that your current away reason isn t changed sends cumulated away messages back to the client when it connects to the irssi_proxy module 0 2c fixes bug where cummulated messages weren t sent code cleanup text wrapping to standart 80x24 text console added debug mode added script modes got rid of crappy irssi setings system new logging expansion capability either time or line based 0 2d micro fix to get back only when needed 0 2e changed default values for config script_mode and config emailto for irc only and a non existing placeholder respectively to come planned wanted make expansion system log several channels at once make this script server based use strict use warnings irssi imports use irssi use irssi irc use vars qw version irssi config version 0 2e irssi authors bcow contact anttip n0 life com name awayproxy description sets nick away when client discconects from the irssi proxy if away gathers messages targeted to nick and forwards them to an email address license gplv2 url http www n0 life com after how much seconds we can check if there are any messages to send config check_interval 45 this setting controls that when this amout of clients are connected to the proxy module script sets you away if you set this to 0 you are set away when no clients are connected to the proxy module if you set this to lets say 5 then you will be set away allways when the amount of clients connected to the proxy module is 5 or under config away_level 0 controls expansion mode this mode records pub msgs that come after one with your nick in it you can use line counting or time counting 0 off line line counting time time counting config expansion_mode time how many lines include after start line config expansion_lines 12 after how many seconds stop gathering msgs config expansion_timeout 90 script operation mode 0 to send messages both to email and when you get back to proxy 1 only email 2 only irc 3 off config script_mode 2 email address where to send the email config emailto recipient domain tld sendmail location config sendmail usr sbin sendmail who is the sender of the email config emailfrom sender domain tld subject of email config emailsubject irssi proxy and the awayreason setting thanx wulf config awayreason auto away because client has disconnected from proxy debugging mode config debug 0 don t change anything below this line if you don t know perl number of clients connected config clientcount 0 number of lines recorded config expansion_lines_count 0 config expansion_started 0 the small list and archive list config awaymsglist config awaymsglist2 if config script_mode 0 config script_mode 1 timeouts for check loop debug timer on timeout config check_interval irssi timeout_add config check_interval 1000 msgsend_check sub debug if config debug my text shift my caller caller irssi print from caller n text sub msgsend_check if there are any messages to send my count config awaymsglist debug checking for messages count check if we didn t grep msgs right now if count 0 config expansion_started concentate messages into one text my text join n config awaymsglist then empty list config awaymsglist finally send email debug concentated msgs text send_mail text sub send_mail my text shift debug sending mail open mail q config sendmail t print mail to config emailto n print mail from config emailfrom n print mail subject config emailsubject n print mail text close mail sub client_connect my servers irssi servers config clientcount debug client connected current script mode config script_mode setback foreach my server servers if you re away on that server send yourself back if server usermode_away 1 server send_raw away and then send the current contents of archive list as notify s to your self weird huh this sends all the away messages to all the servers where you are connected this is somewhat weird i know but if someone wants to make a patch to this i would really appreciate it if config script_mode 0 config script_mode 2 debug sending notices server send_raw notice server nick _ for config awaymsglist2 and clear the awaymessage list config awaymsglist2 if config script_mode 0 config script_mode 2 sub client_disconnect my servers irssi servers debug client disconnectted config clientcount unless config clientcount 0 setaway if config clientcount usermode_away 0 we are not away on this server allready set the autoaway reason server send_raw away config awayreason sub msg_pub my server data nick mask target _ sub push_into_archive my nick mask target data _ simple list that is emptied on the email run push config awaymsglist data if config script_mode 0 config script_mode 1 archive list that is emptied only on the client connect run push config awaymsglist2 data if config script_mode 0 config script_mode 2 if config expansion_started if config expansion_mode eq line if config expansion_lines_count usermode_away 1 data server nick i debug got pub msg with my name push_into_archive nick mask target data if config expansion_mode debug starting expansion in mode config expansion_mode config expansion_started 1 config expansion_chan target config expansion_time_out irssi timeout_add config expansion_timeout 1000 expansion_stop if config expansion_mode eq time sub expansion_stop debug stopping expansion from timer config expansion_started 0 config expansion_chan sub msg_pri my server data nick address _ if server usermode_away 1 debug got priv msg simple list that is emptied on the email run push config awaymsglist data if config script_mode 0 config script_mode 1 archive list that is emptied only on the client connect run push config awaymsglist2 data if config script_mode 0 config script_mode 2 irssi signal_add_last proxy client connected client_connect irssi signal_add_last proxy client disconnected client_disconnect irssi signal_add_last message public msg_pub irssi signal_add_last message private msg_pri
|