[[project @ 2006-06-29 02:01:20 by unknown_lamer] unknown_lamer**20060629020120 scripts/uname: redelim -> rdelim ] { hunk ./AUTHORS 8 -unknown_lamer on OpenProjects and OFTC +unknown_lamer on Freenode and OFTC hunk ./AUTHORS 13 + +Help by: +Stelz (for finding all of the corner cases I never run into) hunk ./ChangeLog 3 + * scripts/uname: redelim -> rdelim + hunk ./ChangeLog 7 + * AUTHORS: Added Stelz to the Help by section + + * source/Bot.C (readConfig): If a logfile starting in / is found + the logdir should be set to all but the last part of the filename, + and the logfile set to the last part to avoid breaking script + logging + hunk ./scripts/uname 3 - (ice-9 redelim)) + (ice-9 rdelim)) hunk ./source/Bot.C 279 - set_log_dir ("/"); - set_log_file (parameters.subString (1)); + StringTokenizer log_st (parameters); + std::string log_dir = "/"; + + for (unsigned int m = log_st.count_tokens ('/'); + --m; + m > 0) + { + log_dir += log_st.next_token ('/') + "/"; + } + + std::cerr << "==" << log_dir << std::endl; + + set_log_dir (log_dir); + set_log_file (log_st.rest ()); }