Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/settings.c @ 1141:5be2408a6534
Add option "max_history_blocks"
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 06 Feb 2007 00:21:42 +0100 |
parents | b2fc694a8228 |
children | 16abe7ec3056 |
comparison
equal
deleted
inserted
replaced
1140:800bb1e9019c | 1141:5be2408a6534 |
---|---|
426 return pgpdata->pgp_keyid; | 426 return pgpdata->pgp_keyid; |
427 #endif | 427 #endif |
428 return NULL; | 428 return NULL; |
429 } | 429 } |
430 | 430 |
431 guint get_max_history_blocks(void) | |
432 { | |
433 int max_num_of_blocks = settings_opt_get_int("max_history_blocks"); | |
434 if (max_num_of_blocks < 0) | |
435 max_num_of_blocks = 0; | |
436 else if (max_num_of_blocks == 1) | |
437 max_num_of_blocks = 2; | |
438 return (guint)max_num_of_blocks; | |
439 } | |
440 | |
431 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ | 441 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |