# Pebrot config file
# (You should be the only one who can read this file, take a look at README)

# Here you must write your MSN user (with @hotmail.com included)
# and you password
#
# You can use more accounts, just add more user/password entries, like this:
# 	user= user1@hotmail.com
#       password= password1
#
# 	user= user2@hotmail.com
#       password= password2
#
#  	etc...
#
# Pebrot defaults to the first user (i.e. user1), but you can select other
# with -u argument.
#
# And if you don't like to put your password here (root could peek it), just
# comment or leave password option undefined, Pebrot will ask for it before
# connecting to server.

user= 
password= 

# Initial state. Must be one of the following:
#	NLN: Online          FLN: Offline        HDN: Appear Offline  
#	IDL: Idle            AWY: Away           BSY: Busy        
#	BRB: Be Right Back   PHN: On the Phone   LUN: Out to Lunch
state= NLN

# When value is 1 a chat is created when someone talks to you. That is, when 
# someone sends you a new message press tab and you'll go to the new chat.
# ***IMPORTANT***: Remember that if its value is 0 you will not be able to talk
# when invited to a chat with more than 1 buddy.
# values= 1 or 0
show_invited= 1

# If 1 Pebrot shows user's list when some user changes state or disconnect.
# values= 1 or 0
auto_list= 1

# If 1 and auto_list=1 Pebrot will also show last move on users list 
# (someone changed state or someone logged out)
# Useful for knowing why the list was displayed last time
auto_list_last_move= 0

# If 1 and auto_list=1 Pebrot will auto-show user's list on window 0 
auto_list_on_0= 0

# If 1 and auto_list=1 and auto_list_on_0=1 Pebrot will clear window 0 before
# displaying user's list there
auto_list_on_0_clear= 0

# If 1 Pebrot will beep when a message is received.
# values= 1 or 0
beep_on_msg= 0

# If 1 Pebrot will beep when a new chat is created (i.e. first msg from a buddy)
# values= 1 or 0
beep_on_new_chat= 0

# Encoding for the sent/received messages
# If its not defined (just comment its line) pebrot will use system's encoding
#
# Only uncomment and set this if you got problems with system's default encoding
# or want to use a special encoding.
encoding= ISO8859-1

# If 1 Pebrot will send typing notifications when writing on a chat
# values= 1 or 0
send_typing= 1

# Specifies where downloaded files should go. If not defined it defaults to home
# dir
#download_dir= /home/angel/

# Max size of names in chat window, that is, the ones before every displayed 
# message (If size <= 0 it will show the full name). If not defined it defaults
# to max_name_size= 0
max_name_size= 0

# Number of seconds to wait for a pal when he is invited to a chat.
pal_connect_timeout= 10

# Enable timestamp when displaying chat messages
timestamp= 0

# Timestamp format. You can use the following format specifiers
#
# %a Locale's abbreviated weekday name.   
# %A Locale's full weekday name.  
# %b Locale's abbreviated month name.  
# %B Locale's full month name.  
# %c Locale's appropriate date and time representation.  
# %d Day of the month as a decimal number [01,31].  
# %H Hour (24-hour clock) as a decimal number [00,23].  
# %I Hour (12-hour clock) as a decimal number [01,12].  
# %j Day of the year as a decimal number [001,366].  
# %m Month as a decimal number [01,12].  
# %M Minute as a decimal number [00,59].  
# %p Locale's equivalent of either AM or PM.  
# %S Second as a decimal number [00,61]. (1)
# %U Week number of the year (Sunday as the first day of the week) as a decimal number [00,53]. All days in a new year preceding the first Sunday are considered to be in week 0.  
# %w Weekday as a decimal number [0(Sunday),6].  
# %W Week number of the year (Monday as the first day of the week) as a decimal number [00,53]. All days in a new year preceding the first Sunday are considered to be in week 0.  
# %x Locale's appropriate date representation.  
# %X Locale's appropriate time representation.  
# %y Year without century as a decimal number [00,99].  
# %Y Year with century as a decimal number.  
# %Z Time zone name (or by no characters if no time zone exists).  
# %% A literal "%" character.

timestamp_format= [%H:%M]

# Enable chat logs. They are saved under $HOME/.pebrot/logs
log_chats= 0

# This allows you to define your own delete key. Just put here the keycode
# of this key on your system. To find it just execute the script getkeys.py 
# in the utils dir.
#
# You must copy the number with the 0x included

#delete_key= -1

# How each chat appears on state bar. Can have these values:
#   number: A number identifies each chat. 
#   user: Name of the user you are chatting with. 'Multiple' on a chat with more
#         than one pal and 'Main' on first window.
#   both: number + user 

chat_title= user

# Uncomment this option if you are behind a firewall and sometimes are
# disconnected from MSN server. This numbers specifies time between ping
# messages to server (ping here refers to sending a PNG message in MSN protocol,# not the typical ping in TCP/IP)
#
# 60 seconds should be enough for not being disconnected, if not try a lower
# ping time, maybe it helps.

ping_time= 60


# Uncomment this option if you want your state automatically changed from
# "online" after a period of inactivity.

#idle_time= 300

# And uncomment this if you want to automatically be set back to online when
# you send a message.

#auto_unidle= 1

# By default, state is set to "idle" after idle_time - set idle_state to one
# of the state codes above to change this - e.g.
 
#idle_state= AWY


# This option specifies the ascii art file displayed when starting Pebrot.
# If the file path doesn't begin with '/' its interpreted as a relative path
# from pebrot documentation dir (usually /usr/share/doc/pebrot).
#
# If you hate ascii peppers and the like just don't put any file path.

logo_file= logos/pebrot.txt


# This option allows to specify your public ip. This is useful when using 
# private ip and NAT, this way you can ensure that Pebrot sends the public ip of
# your router.
#
# If you set this to 'auto' (without ') Pebrot will query 
# http://simple.showmyip.com for this info.
#
# Be aware that this ip is only used when sending a file to someone, so if
# that is working there's no need to set this option.

#my_ip= 


################################### ALIASES ####################################
# You can define fixed names for your pals here. That is, it will print this 
# instead of his/her screenname. 
# e.g:
#
# alias= my_pal_name@hotmail.com Moe Szyslak
#


# Next option (chat_title_use_alias) allows you to use your aliases on chats' 
# titles when option chat_title is set to 'user'

chat_title_use_alias= 0

# This option allows you to auto-add a user to your allowed list when he/she 
# adds you to his/her list

auto_add_to_allowed= 0

################################################################################

#################################### EVENTS ####################################
#
# You can associate shell lines to be executed on some events using the 
# following options:
#
# exec_on_msg: New message received
# exec_on_new_chat: New chat created
# exec_on_file_recv_begin: A file reception has begun
# exec_on_file_recv_end: A file reception has ended
# exec_on_pal_state_nln: Pal changed state to 'online'
# exec_on_pal_state_change: Pal changed state (to any but 'online')
# exec_on_pal_connected: Pal connected 
# exec_on_pal_disconnected: Pal disconnected
#
# Each of these has some available variables for using in shell lines. See
# the following list:
#
# exec_on_msg: $passport, $user, $msg
# exec_on_new_chat: $passport, $user, $msg
# exec_on_file_recv_begin: $passport, $user, $file, $size
# exec_on_file_recv_end: $passport, $user, $file, $size
# exec_on_pal_state_nln: $passport, $user
# exec_on_pal_state_change: $passport, $user, $state
# exec_on_pal_connected: $passport, $user, $state
# exec_on_pal_disconnected: $passport, $user
#
# Let's sum it all up, if you are in x-window and have the xmessage app you can 
# display a new window everytime some pal connects with this:
#
# exec_on_pal_connected= xmessage $passport named $user has CONNECTED
#
# Or just suppose you want to send mail to some address when a pal starts a chat
# with you... 
#
# exec_on_new_chat= echo $user - $passport created a new chat | mail someone@somedomain.com
#
# And now with something completely different suppose you only want to play some
# sound when someone tries to send you a file (see the redirection to /dev/null
# for not getting any output over Pebrot's screen)
#
# exec_on_file_recv_begin= play sound.wav &> /dev/null
#
#
# IMPORTANT: An now about security... Executing external data in shell is 
# dangerous. Period. So I have used function re.escape() to escape 
# non-alphanumeric chars on some of this variables.
#
# e.g. Imagine some user send you this message:
#
# ; touch ~/gotcha
# 
# and you have the following option:
#
# exec_on_msg= echo $msg 
#
# So just substitute and there it goes... a gotcha file in your home. If this
# doesn't seem dangerous just imagine an rm instead of a touch... 
#
# But, as mentioned before, some of these variables are escaped, so really 
# $msg would be this:
#
# \;\ touch\ \~\/gotcha
#
# and now after substitution there is no problem executing this:
#
# echo \;\ touch\ \~\/gotcha
#
# The escaped variables are these:
#
# $msg, $user, $file
#
#
################################################################################


#################################### COLORS ####################################
# Valid colors names are: white, blue, red, cyan, yellow, green, magenta.
col_default= white
col_info= cyan
col_info_delim= red
col_error= yellow
col_error_delim= red
col_chat_bar= blue
col_chat_bar_name= blue
col_chat_bar_name_typing= green
col_state_bar= blue
col_state_bar_written= yellow
col_state_bar_not_written= blue
col_my_name= blue
col_others_name= red
col_list_delim= white
col_list_num= red
col_list_pass= blue
col_list_state= green
col_list_name= white
col_list_parens= white
col_timestamp= white
################################################################################
