Changeset 3476 for branches/protocol_plugin_1_3_0
- Timestamp:
- 05/02/03 09:06:55 (6 years ago)
- Files:
-
- 1 modified
-
branches/protocol_plugin_1_3_0/licq/src/user.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/protocol_plugin_1_3_0/licq/src/user.cpp
r3469 r3476 149 149 { 150 150 //FIXME load owner of protocol plugins that are currently loaded 151 AddOwner(" 16325723", LICQ_PPID);151 AddOwner("", LICQ_PPID); 152 152 gLog.Info("%sUser configuration.\n", L_INITxSTR); 153 153 … … 1602 1602 1603 1603 void ICQUser::Init(unsigned long _nUin) 1604 { 1604 { 1605 1605 char szUin[24]; 1606 1606 sprintf(szUin, "%ld", _nUin); … … 1669 1669 1670 1670 // gui plugin compat 1671 if (m_nPPID == LICQ_PPID )1671 if (m_nPPID == LICQ_PPID && m_szId) 1672 1672 m_nUin = strtoul(m_szId, (char **)NULL, 10); 1673 1673 else … … 2815 2815 ICQOwner::ICQOwner(const char *_szId, unsigned long _nPPID) 2816 2816 { 2817 gLog.Info("%sOwner configuration for %s.\n", L_INITxSTR, _szId);2818 2817 char szTemp[MAX_LINE_LEN]; 2819 2818 char filename[MAX_FILENAME_LEN]; … … 2822 2821 m_szPassword = NULL; 2823 2822 2824 Init(_szId, _nPPID);2825 //SetOnContactList(true);2826 m_bOnContactList = true;2827 2828 2823 // Get data from the config file 2829 2824 char *p = PPIDSTRING(_nPPID); … … 2838 2833 } 2839 2834 2835 // Get the id before init 2840 2836 m_fConf.SetFileName(filename); 2837 m_fConf.ReloadFile(); 2838 m_fConf.SetFlags(0); 2839 m_fConf.SetSection("user"); 2840 m_fConf.ReadStr("Uin", szTemp, "", false); 2841 2842 // Now we can init 2843 Init(szTemp, _nPPID); 2844 m_bOnContactList = true; 2845 2846 // And finally our favorite function 2841 2847 LoadInfo(); 2842 2848 m_fConf.ReadStr("Password", szTemp, "", false); … … 2852 2858 m_fConf.CloseFile(); 2853 2859 2860 gLog.Info("%sOwner configuration for %s.\n", L_INITxSTR, m_szId); 2861 2854 2862 snprintf(filename, MAX_FILENAME_LEN - 1, "%s/%s/owner.%s.%s.history", BASE_DIR, HISTORY_DIR, 2855 _szId, p);2863 m_szId, p); 2856 2864 SetHistoryFile(filename); 2857 2865 … … 2924 2932 } 2925 2933 m_fConf.SetSection("user"); 2926 m_fConf.Write Num("Uin", Uin());2934 m_fConf.WriteStr("Uin", IdString()); 2927 2935 m_fConf.WriteBool("WebPresence", WebAware()); 2928 2936 m_fConf.WriteBool("HideIP", HideIp());
