savirc/getRevision [ Functions ]

[ Top ] [ Functions ]

FUNCTION

This allows us to show, in a graphical way, what SVN revision of savIRC we are currently using. This is helpful when collaborating with others, and making sure we are using the same revision.


global/Convert [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Per Hansen

COPYRIGHT

(c) 2006 by Per Hansen

FUNCTION

Replaces special tcl-characters {}[]"\ with unused ascii-codes. With this you can do string commands on lists without prior [join] the list because list elements will only be encapsulated with {} when they contain special characters. Over all this is a very bad coding practice and we should avoid it in the future. We use clear variable names like l_name and s_name to be always sure which variable type we use. For now we [Convert] all strings which comes from the gui, the server, dcc-chat or a file and [Revert] everything before writing it back. In savIRC all values can be considered to be Converted, non-Converted variables are prefixed with "r"

SYNOPSIS

If $sr_var is i.e. "Hi [phobos] it's in C:\savIRC" it returns "Hi \x92phobos\x93 it's in C:\x95savIRC" [split] on $sr_var would return "Hi {[phobos]} it's in {C:\savIRC}" If you split the return value of [Convert] it will remain the same...


global/Connect [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Saverio Castellano

COPYRIGHT

(c) 2001-2003 by Saverio Castelano (c) 2005-2006 by Per Hansen

FUNCTION

Handles arguments passed from IRC::server Starts a new server connection. If used with -r it reconnects a existing serverconnection.

SYNOPSIS

args: ?-i<ip>? ?-p<port>? ?-u<userid> ?-s<pass> ?-n<nick>? ?-a<anick>? ?-r[id]? ?-e?" "Connect" without an argument should not be used anymore.

               We will do an extra proc for connect on startup and on clicking connect.

"proc ConnectAuto" will read (mutible) last connected servers from the config

               and connects to them like shown above.


global/Window [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Per Hansen

COPYRIGHT

(c) 2006 by Per Hansen

FUNCTION

Detects if w is a channel, query, ... and returns a number.

SYNOPSIS

called from: NickMode ViewLog returns: window type 0=channel 1=query 2=chat 3=status


global/GetWindowType [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Per Hansen

COPYRIGHT

(c) 2006 by Per Hansen

FUNCTION

Detects if w is a channel, query, ...

SYNOPSIS

called from: "many procs" returns: channel, query or chat from a window name w = window name i.e. query1-0


savirc/ncomplete [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Casey Ackels

FUNCTION

The end-user will type the first few characters of another person's nickname and then press <tab>. We will then sort through the available nicknames and return the most likeliest match. If more than one are found, then pressing <tab> repeatedly will cycle through the list

SYNOPSIS

called from: windows.tcl, others? There are no parameters to this command


global/OpenUrl [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Saverio Castellano Casey Ackels

COPYRIGHT

2001 - 2003 (c) Saverio Castellano 2005 (c) Casey Ackels

FUNCTION

This is called when a user chooses to double-click on a url posted in a channel/query/chat window

SYNOPSIS

OpenURL <url>


global/BPS [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Saverio Castellano Casey Ackels

FUNCTION

Updates the bytes per second, gui element, every second which are being sent to/from the enduser Used in the main window of savIRC

SYNOPSIS

No arguments; returns the BPS


global/ViewLog [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Saverio Castellano Casey Ackels

FUNCTION

This is the savIRC internal log viewer. Shows the logs to the enduser and fixes the filename of the log if needed (illegal chars for the filesystem).

SYNOPSIS

ViewLog <filename> Called from: flist.tcl, menus.tcl


global/LogChannel [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Saverio Castellano Casey Ackels

FUNCTION

This is a helper proc to [PutLog]; it figures out which window it is logging (i.e. chan, query, chat) Fixes the filename if needed (Illegal chars are stripped out), sends an error message there's a problem.

SYNOPSIS

LogChannel <window>


global/PutLog [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Saverio Castellano Casey Ackels

FUNCTION

Writes the text to the log file Called from: colors.tcl, windows.tcl

SYNOPSIS

PutLog <window> <text> <newline>


global/fix_filename [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Per Hansen

COPYRIGHT

(c) 2006 by Per Hansen

FUNCTION

called from: ViewLog LogChannel Replaces special characters "{}[]"\|/" which are not allowed in filenames with "'".

SYNOPSIS

If $var is i.e. "{savirc}"v2.0|.zip" it returns "'savirc''v2.0'.zip"


global/AddressText [ Functions ]

[ Top ] [ Functions ]

COPYRIGHT

(c) 2001 - 2003 by Saverio Castellano (c) 2006 by Casey Ackels

AUTHOR

Casey Ackels

FUNCTION

When the feature 'Show Addresses' is not selected, AddressText will remove the user@host from everything, except joins/parts/quits

SYNOPSIS

Use AddressText before string is sent to the server which contains a user@host


savirc/getIPfromDyndns [ Functions ]

[ Top ] [ Functions ]

AUTHOR

Per Hansen

COPYRIGHT

(c) 2005 by Per Hansen

FUNCTION

Resolves your dynamic dns to get your external ip

SYNOPSIS

No arguments and no return value. Writes the ip to $me(ip)