Commit Details

Avatar

Repository http://toxygen.net/svn/ekg2/trunk /trunk
by gim on 2008-08-11 11:52 (about 1 year ago)

instead of calculating longest_nick_len move it to channel_t struct
because of this we can add nice padding to messages on channel.
This is actually default behaviour, this can cause some
problems if you have SHOW_NICKMODE_EMPTY set to 0.

padding is available as a %7th argument and you can use it in
following formattes:
irc_msg_sent_chan, irc_msg_sent_chanh, irc_msg_f_chan_n, irc_msg_f_chan_nh

for example:
irc_msg_f_chan_n = "%7<%2%3> %6"
will cause to put padding before nick (so nickanames of all messages
will be right-aligned) while:
irc_msg_f_chan_n = "<%2%3>%7 %6"
will the nickname to be padded from right side.

Language Totals

  Language Code Added Code Removed Comments Added Comments Removed Blanks Added Blanks Removed
  C 98 42 34 3 14 0

Files Changed

[4 total ]
File Language Code Added Code Removed Comments Added Comments Removed Blanks Added Blanks Removed
plugins/irc/irc.c
  C 56 38 3 3 1 0
plugins/irc/irc.h
  C 6 0 0 0 2 0
plugins/irc/misc.c
  C 7 3 0 0 3 0
plugins/irc/people.c
  C 29 1 31 0 8 0